SafeGRC20Approve
SafeGRC20Approve approves tokens as the current realm and panics if it fails.
Parameters:
- _: leading integer discriminator for the realm-crossing ABI; pass 0.
- rlm: propagated realm context used to resolve and invoke the registered token implementation.
- tokenKey: registry key identifying the GRC20 token.
- spender: address authorized to spend the caller's tokens.
- amount: number of token base units to authorize.
Panics if the underlying approval returns an error.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/common.SafeGRC20Approve(,,,,)"
Result