How to compile smart contract with yarn solc.js command in windows? #5719
-
HI yarn solc --bin --abi --include-path node_modules/ --base-path . -o. SimpleStorage.sol This command runs in the window but does not create an ABI and Bin file. |
Beta Was this translation helpful? Give feedback.
Answered by
areeba-junaid
Jun 21, 2023
Replies: 1 comment 3 replies
-
@areeba-junaid Add this in your "scripts": {
"compile": "solcjs --bin --abi --include-path node_modules/ --base-path . -o . SimpleStorage.sol"
} This command required a file name |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have resolved the issue. The above script runs perfectly. I had installed a latest version of Solcjs and my code was using version 0.8.7 so that is why I was having the issue.
Thanks for all your help