(
account: WalletClient,
destination: Address,
callerValue: bigint,
relayValue: bigint,
requireSuccess: boolean,
callData: Hex,
gas?: bigint,
)
| 67 | } |
| 68 | |
| 69 | async callRelay( |
| 70 | account: WalletClient, |
| 71 | destination: Address, |
| 72 | callerValue: bigint, |
| 73 | relayValue: bigint, |
| 74 | requireSuccess: boolean, |
| 75 | callData: Hex, |
| 76 | gas?: bigint, |
| 77 | ): Promise<TransactionReceipt> { |
| 78 | const txHash = await account.writeContract({ |
| 79 | address: this.address, |
| 80 | abi: this.abi, |
| 81 | functionName: 'relay', |
| 82 | value: callerValue, |
| 83 | args: [destination, relayValue, requireSuccess, callData], |
| 84 | gas, |
| 85 | }) |
| 86 | return await this.client.waitForTransactionReceipt({ hash: txHash }) |
| 87 | } |
| 88 | |
| 89 | async callCreate( |
| 90 | account: WalletClient, |
no outgoing calls
no test coverage detected