Ganache
ganache-cli 是否支持伊斯坦布爾硬分叉?
我正在嘗試
ganache-cli
使用 istanbul –hardfork 執行,但出現以下錯誤:
Error: Hardfork istanbul not set as supported in supportedHardforks
$ ganache-cli --version Ganache CLI v6.4.1 (ganache-core: 2.5.3) $ ganache-cli --allowUnlimitedContractSize --port 8547 --gasLimit 6721975 --accounts 10 --hardfork istanbul Error: Hardfork istanbul not set as supported in supportedHardforks at e.setHardfork (/Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:2:148221) at new e (/Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:2:147540) at new _ (/Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:490034) at v.createVMFromStateTrie (/Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:47:116822) at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:47:116382 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:47:117447 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1841439 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1840514 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1845356 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1842719 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1863594 at /Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1870971 at ReadFileContext.callback (/Users/alper/.npm-packages/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:61:1869433) at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:242:13)
**$$ Q $$**我應該怎麼做才能修復它?
截至 2019 年 12 月 30 日,
ganache-cli
僅通過標記為 beta 的版本 6.8.0-istanbul0提供對伊斯坦布爾的支持。要升級到此版本:
npm uninstall ganache-cli -g npm install ganache-cli@istanbul -g