Skip to content
Snippets Groups Projects
Alexander Theißen's avatar
Alexander Theißen authored
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 <action@github.com>
0d3d4502
Name Last commit Last update
..
src
Cargo.toml