(
account: WalletClient,
bytecode: Hex,
value: bigint,
createValue: bigint,
)
| 87 | } |
| 88 | |
| 89 | async callCreate( |
| 90 | account: WalletClient, |
| 91 | bytecode: Hex, |
| 92 | value: bigint, |
| 93 | createValue: bigint, |
| 94 | ): Promise<TransactionReceipt> { |
| 95 | const txHash = await account.writeContract({ |
| 96 | address: this.address, |
| 97 | abi: this.abi, |
| 98 | functionName: 'create', |
| 99 | value, |
| 100 | args: [bytecode, createValue], |
| 101 | gas: 2000000n, |
| 102 | }) |
| 103 | return await this.client.waitForTransactionReceipt({ hash: txHash }) |
| 104 | } |
| 105 | |
| 106 | async callCreate2(account: WalletClient, bytecode: Hex, salt: Hex, value: bigint): Promise<TransactionReceipt> { |
| 107 | const txHash = await account.writeContract({ |
no outgoing calls
no test coverage detected