solc, the solidity compiler commandline interface
Version: 0.5.7+commit.6da8b019.Linux.g++
-
In the root directory, compile the
World
contract describedcontracts/World.sol
with bytecodes output to current directorysolc --bin --optimize contracts/World.sol -o .
This should give us two files Hello.bin
and World.bin
containing bytecodes for the respective contracts
-
Change into the
contracts
folder, and compile theWorld.sol
with bytecodes output to that foldersolc --bin --optimize World.sol -o .
This should also give us two files Hello.bin
and World.bin
containing bytecodes for the respective contracts
Compare the World.bin
and contracts/World.bin
with diff
would tell us difference
The same contract manifest should produce the same bytecodes