(account: WalletClient, bytecode: Hex, salt: Hex, value: bigint)
| 104 | } |
| 105 | |
| 106 | async callCreate2(account: WalletClient, bytecode: Hex, salt: Hex, value: bigint): Promise<TransactionReceipt> { |
| 107 | const txHash = await account.writeContract({ |
| 108 | address: this.address, |
| 109 | abi: this.abi, |
| 110 | functionName: 'create2', |
| 111 | value: value, |
| 112 | args: [bytecode, salt], |
| 113 | }) |
| 114 | return await this.client.waitForTransactionReceipt({ hash: txHash }) |
| 115 | } |
| 116 | |
| 117 | async callSelfDestruct(account: WalletClient, target: Address, value?: bigint): Promise<TransactionReceipt> { |
| 118 | const txHash = await account.writeContract({ |
no outgoing calls
no test coverage detected