Type Alias Ack

Source
pub type Ack = Callback;
Expand description

wasmd 0.32+ will not return a hardcoded ICS-20 ACK if ibc_packet_receive errors 1 so we can safely use an ACK format that is not ICS-20 error-variant compatible.

Aliased Type§

pub enum Ack {
    Execute(Result<ExecutionResponse, String>),
    FatalError(String),
}

Variants§

§

Execute(Result<ExecutionResponse, String>)

Result of executing the requested messages, or an error.

14/04/23: if a submessage errors the reply handler can see codespace: wasm, code: 5, but not the actual error. as a result, we can’t return good errors for Execution and this error string will only tell you the error’s codespace. for example, an out-of-gas error is code 11 and looks like codespace: sdk, code: 11.

§

FatalError(String)

An error occured that could not be recovered from. The only known way that this can occur is message handling running out of gas, in which case the error will be codespace: sdk, code: 11.

This error is not named because it could also occur due to a panic or unhandled error during message processing. We don’t expect this to happen and have carefully written the code to avoid it.