diff --git a/truffle-config.js b/truffle-config.js index 0855df1..d8cb80a 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -15,4 +15,15 @@ module.exports = { // See // to customize your Truffle configuration! + compilers: { + solc: { + version: "0.4.24", // 指定与合约兼容的Solidity编译器版本 + settings: { // 可选配置 + optimizer: { + enabled: true, + runs: 200 + } + } + } + } };