-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include runtime_bytecode in artifacts
- Loading branch information
Showing
6 changed files
with
119 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Include runtime bytecode in compile artifacts | ||
|
||
Previously, the compiler could only produce the bytecode that is used | ||
for the deployment of the contract. Now it can also produce the runtime | ||
bytecode which is the bytecode that is saved to storage. | ||
|
||
Being able to obtain the runtime bytecode is useful for contract | ||
verification. | ||
|
||
To obtain the runtime bytecode use the `runtime-bytecode` option | ||
of the `--emit` flag (multiple options allowed). | ||
|
||
Example Output: | ||
|
||
- mycontract.bin (bytecode for deployment) | ||
- mycontract.runtime.bin (runtime bytecode) |