You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
The bytecode generated by truffle compile and the bin generated by solc are always different.
I am using:
solc v0.4.24
truffle v4.1.14 (which, according to its package.json, relies on solc v0.4.24)
It appears that the difference is always in the 64 characters which appear right before the last 4 characters in each output. Is that possibly just metadata?
Anyhow, you can reproduce this as follows:
Input file MyContract.sol:
pragma solidity 0.4.24;
contract MyContract {
uint public x = 42;
}
The
bytecodegenerated bytruffle compileand thebingenerated bysolcare always different.I am using:
package.json, relies on solc v0.4.24)It appears that the difference is always in the 64 characters which appear right before the last 4 characters in each output. Is that possibly just metadata?
Anyhow, you can reproduce this as follows:
Input file MyContract.sol:
Truffle command-line:
Solc command-line:
Truffle output file MyContract.json:
Solc output file MyContract.bin:
The difference: