由于某些原因,我在升级块菌稳健编译器版本时遇到了困难。松露版本->Trufferv5.2.2坚实度v0.5.16当我卸载和重新安装松露(npm卸载-g松露和npm安装-g松露)时,它是相同的版本。我该如何使用最新版本的“甜糖”呢?在10号窗户上。
发布于 2022-05-01 07:45:22
我确实找到了正确的方法,我相信是修改块菌-config.js。这对我有用。
}, //make sure you have the comma here
compilers: {
solc: {
version: "0.4.22", // ex: "0.4.20". (Default: Truffle's installed solc)
},
},https://ethereum.stackexchange.com/questions/127173
复制相似问题