Skip to main content
Version: 1.15.0

Function: assertTokenOwnershipTransfer()

assertTokenOwnershipTransfer(operation: string, chain: EVMChain, tokenAddress: string, newOwner: string, sender?: string): Promise<void>

Defined in: cct/evm/token/contracts.ts:328

The token-side assertPoolOwnershipTransfer: bounds a two-step transfer against the token's owner() in one eth_call.

Parameters​

ParameterTypeDescription
operationstringOperation name, for the error's operation field.
chainEVMChainChain to read the owner from.
tokenAddressstringToken being written to.
newOwnerstringThe address being proposed as the next owner.
sender?stringThe address the tx will be sent from, when known.

Returns​

Promise<void>

Throws​

CCTParamsInvalidError if sender is not the owner, or newOwner already is