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
| Parameter | Type | Description |
|---|---|---|
operation | string | Operation name, for the error's operation field. |
chain | EVMChain | Chain to read the owner from. |
tokenAddress | string | Token being written to. |
newOwner | string | The address being proposed as the next owner. |
sender? | string | The address the tx will be sent from, when known. |
Returns
Promise<void>
Throws
CCTParamsInvalidError if sender is not the owner, or newOwner already is