【发布时间】:2022-01-02 08:42:59
【问题描述】:
Gas fees and units used when deployed contract:
Error shown: Failure: Gas Error: Gas limit(600) exceeded: 601
【问题讨论】:
标签: blockchain
Gas fees and units used when deployed contract:
Error shown: Failure: Gas Error: Gas limit(600) exceeded: 601
【问题讨论】:
标签: blockchain
我不得不将我的 gas 限制增加到 3000 来解决这个问题。
在 KDA 中,与其他区块链一样,每个操作都会消耗气体。 因此,一笔交易根据其复杂性消耗总气体量。 gasLimit 是您希望为该交易花费的最大气体。 如果太低,交易将失败(这就是你的情况), 如果它太高,您将在交易结束时退款。
合约部署是一项繁重的交易,因此需要消耗大量的 gas。 600 的 Gas Limit 设置对于代币转移来说很好,但对于合约部署来说还不够。 目前建议使用 3000 Units Gas 限制进行合约部署。
【讨论】: