MCPcopy Create free account
hub / github.com/circlefin/arc-node / callCreate2

Method callCreate2

tests/helpers/NativeTransferHelper.ts:106–115  ·  view source on GitHub ↗
(account: WalletClient, bytecode: Hex, salt: Hex, value: bigint)

Source from the content-addressed store, hash-verified

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({

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected