Hedera Hashgraph Network是否支持智能合约,是否可以将智能合约迁移到Hedera?
发布于 2021-09-30 20:59:23
支持智能合约。请参阅文档here。
此外,智能合约2.0已经发布,并将在21Q4左右推出-有关更多详细信息,请参阅Hedera roadmap和announcement。简而言之,Smart Contracts 2.0将支持每秒运行数百个可靠的智能合约。这还将促进从其他网络的迁移,同时最大限度地减少代码更改。
//Create the transaction const transaction = new ContractCreateTransaction()
.setGas(500)
.setBytecodeFileId(bytecodeFileId)
.setAdminKey(adminKey);
//Modify the default max transaction fee (1 hbar) const modifyTransactionFee = transaction.setMaxTransactionFee(new Hbar(16));
//Sign the transaction with the client operator key and submit to a Hedera network const txResponse = await modifyTransactionFee.execute(client)https://stackoverflow.com/questions/69384416
复制相似问题