internal

package
v11.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCallback

func ProcessCallback(
	ctx sdk.Context, callbackType types.CallbackType,
	callbackData types.CallbackData, callbackExecutor func(sdk.Context) error,
) (err error)

ProcessCallback executes the callbackExecutor and reverts contract changes if the callbackExecutor fails.

Error Precedence and Returns:

  • oogErr: Takes the highest precedence. If the callback runs out of gas, an error wrapped with types.ErrCallbackOutOfGas is returned.
  • panicErr: Takes the second-highest precedence. If a panic occurs and it is not propagated, an error wrapped with types.ErrCallbackPanic is returned.
  • callbackErr: If the callbackExecutor returns an error, it is returned as-is.

panics if

  • the contractExecutor panics for any reason, and the callbackType is SendPacket, or
  • the contractExecutor runs out of gas and the relayer has not reserved gas grater than or equal to CommitGasLimit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL