Skip to content

Use validateZRC20Withdrawal for revert case #3135

@lumtis

Description

@lumtis

The following check in evm_hook validates withdrawals:

func (k Keeper) validateZRC20Withdrawal(ctx sdk.Context, chainID int64, value *big.Int, to []byte) error {

Since a revert should be treated as a withdrawal as well, the same check should be included when a new outbound is being created from a revert.

If the check doesn't pass, the CCTX should be aborted.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions