ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.61k stars 186 forks source link

Include runtime_bytecode in artifacts #947

Closed cburgdorf closed 1 year ago

cburgdorf commented 1 year ago

What was wrong?

Currently, the compiler would only outputs the bytecode that is used for contract deployment but not the runtime bytecode that is later saved to storage and can be read out from the blockchain.

Being able to obtain the runtime bytecode is useful for contract verification.

How was it fixed?

Basically just expose the deployedBytecode that solc already gives us. Note: