【发布时间】:2021-11-21 20:02:09
【问题描述】:
Hedera Hashgraph Network 是否支持智能合约,是否可以将智能合约迁移到 Hedera?
【问题讨论】:
标签: smartcontracts hashgraph hedera-hashgraph
Hedera Hashgraph Network 是否支持智能合约,是否可以将智能合约迁移到 Hedera?
【问题讨论】:
标签: smartcontracts hashgraph hedera-hashgraph
支持智能合约。请参阅文档here。
此外,智能合约 2.0 已宣布并将在 21 季度左右推出 - 请参阅 Hedera roadmap 和 announcement 了解更多详情。 简而言之,智能合约 2.0 将能够每秒运行数百个 Solidity 智能合约。这也将有助于从其他网络迁移,同时最大限度地减少代码更改。
//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)
【讨论】: