Skip to main content
Version: 1.15.0

Function: readLockboxOwner()

readLockboxOwner(chain: EVMChain, lockbox: string): Promise<string>

Defined in: cct/evm/lockbox/contracts.ts:297

Reads an ERC20LockBox's owner() in one eth_call.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
lockboxstringLockbox contract to read owner() from.

Returns​

Promise<string>

The current owner, checksummed.

Remarks​

Callers run assertLockbox first: owner() is declared by pools and tokens too, so it says nothing about whether lockbox is a lockbox.