【发布时间】:2023-03-25 07:37:01
【问题描述】:
我能够在 ganache 上部署合约并使用迁移测试网络,其中包括将一些 eth 发送到其中一个合约
deployer.deploy(Oracle, {from: accounts[0], gas:6721975, value: 0.25e18});
但是,当我将 Oracle 合同部署到 Quorum/Azure 区块链服务时,我得到了
Error: *** Deployment Failed ***
"Oracle" received a generic error from Geth that
can be caused by hitting revert in a contract constructor or running out of gas.
* gas required exceeds allowance (6721975) or always failing transaction.
对这个错误的一些谷歌搜索导致了帖子 (https://ethereum.stackexchange.com/questions/74209/gas-required-exceeds-allowance-truffle-migrate/74211),但我不确定这是否是原因,我无法弄清楚如何更改 Azure 区块链上的起源。任何帮助将不胜感激。
我还检查了 Oracle 合约的构造函数,它没有任何会导致异常的东西。
【问题讨论】:
标签: azure quorum azure-blockchain-service oraclize