Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAddress = sdkerrors.ErrInvalidAddress ErrContractNotRegistered = errorsmod.Register(codespace, 1, "contract not registered") ErrContractAlreadyRegistered = errorsmod.Register(codespace, 2, "contract already registered") ErrContractNotAdmin = errorsmod.Register(codespace, 3, "sender is not the contract admin") ErrContractNotCreator = errorsmod.Register(codespace, 4, "sender is not the contract creator") ErrInvalidCWContract = errorsmod.Register(codespace, 5, "invalid CosmWasm contract") ErrOutOfGas = errorsmod.Register(codespace, 6, "contract execution ran out of gas") ErrContractExecutionPanic = errorsmod.Register(codespace, 7, "contract execution panicked") )
Functions ¶
func ExecuteContract ¶
func ExecuteContract(k wasmtypes.ContractOpsKeeper, childCtx sdk.Context, contractAddr sdk.AccAddress, msgBz []byte, err *error)
ExecuteContract executes a contract and recovers from panic
func IsOutOfGasError ¶
IsOutOfGasError checks if error is out of gas error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.