npm solc: AssertionError [ERR_ASSERTION]: Invalid callback specified

前端 未结 10 3024
灰色年华
灰色年华 2021-02-19 07:41

I am trying to compile solidity smart contract using npm solc. I tried to follow different examples. Link to example: https://medium.com/coinmonks/how-to-compile-a-solidity-sma

10条回答
  •  心在旅途
    2021-02-19 07:57

    This is generally the assertion error between the solidity compiler that you have installed and the solidity compiler version that you are using in the solidity contract file. If you are using

    npm install --save solc@0.4.25

    to install solc in your mac then, please use the same version of pragma in your solidity file like the following

    pragma solidity^0.4.25

提交回复
热议问题