Skip to main content
Commonmark migration
Source Link

I use the command "solcjs --bin mycontract.sol" to get the "Binary of the contracts in hex" and it looks like:

[![enter image description here][1]][1]enter image description here

It can be used as a parameter of evm in geth after the command "evm --code".

When I use Remix, I get the bytecode in JSON of my contract:

[![enter image description here][2]][2]enter image description here

So, what are differences between binary in hex and bytecode of a contract ? What are they used for ? [1]: https://i.sstatic.net/fN74b.png [2]: https://i.sstatic.net/x1mJD.png

I use the command "solcjs --bin mycontract.sol" to get the "Binary of the contracts in hex" and it looks like:

[![enter image description here][1]][1]

It can be used as a parameter of evm in geth after the command "evm --code".

When I use Remix, I get the bytecode in JSON of my contract:

[![enter image description here][2]][2]

So, what are differences between binary in hex and bytecode of a contract ? What are they used for ? [1]: https://i.sstatic.net/fN74b.png [2]: https://i.sstatic.net/x1mJD.png

I use the command "solcjs --bin mycontract.sol" to get the "Binary of the contracts in hex" and it looks like:

enter image description here

It can be used as a parameter of evm in geth after the command "evm --code".

When I use Remix, I get the bytecode in JSON of my contract:

enter image description here

So, what are differences between binary in hex and bytecode of a contract ? What are they used for ?

Source Link
Shuai Xu
  • 111
  • 1
  • 4

Difference between Binary of the Contracts in Hex and contract bytecode?

I use the command "solcjs --bin mycontract.sol" to get the "Binary of the contracts in hex" and it looks like:

[![enter image description here][1]][1]

It can be used as a parameter of evm in geth after the command "evm --code".

When I use Remix, I get the bytecode in JSON of my contract:

[![enter image description here][2]][2]

So, what are differences between binary in hex and bytecode of a contract ? What are they used for ? [1]: https://i.sstatic.net/fN74b.png [2]: https://i.sstatic.net/x1mJD.png