Skip to content
Unverified Commit 0d3d4502 authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

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: default avatarGitHub Action <[email protected]>
parent 44766de6
Pipeline #508306 waiting for manual action with stages
in 2 minutes and 42 seconds