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

Method callCreate

tests/helpers/NativeTransferHelper.ts:89–104  ·  view source on GitHub ↗
(
    account: WalletClient,
    bytecode: Hex,
    value: bigint,
    createValue: bigint,
  )

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected