pallet-revive: Adjust error handling of sub calls (#6741)
We were trapping the host context in case a sub call was exhausting the
storage deposit limit set for this sub call. This prevents the caller
from handling this error. In this PR we added a new error code that is
returned when either gas or storage deposit limit is exhausted by the
sub call.
We also remove the longer used `NotCallable` error. No longer used
because this is no longer an error: It will just be a balance transfer.
We also make `set_code_hash` infallible to be consistent with other host
functions which just trap on any error condition.
---------
Co-authored-by: GitHub Action <[email protected]>
Please register or sign in to comment