Skip to content
Snippets Groups Projects
  • Alexander Theißen's avatar
    pallet-revive: Adjust error handling of sub calls (#6741) · 0d3d4502
    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>
    Unverified
    0d3d4502
Code owners
Assign users and groups as approvers for specific file changes. Learn more.