Skip to content

Commit 7c461bf

Browse files
authored
Merge pull request #15928 from ethereum/document-eof-flag
Document the EOF version setting in Standard JSON and metadata
2 parents 4355555 + 643caa3 commit 7c461bf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/metadata.rst

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ explanatory purposes.
134134
},
135135
// Required for Solidity.
136136
"evmVersion": "london",
137+
// Optional: Only present if not null.
138+
"eofVersion": 1,
137139
// Required for Solidity: Addresses for libraries used.
138140
"libraries": {
139141
"MyLib": "0x123123..."

docs/using-the-compiler.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,14 @@ Input Description
353353
}
354354
}
355355
},
356-
// Version of the EVM to compile for.
356+
// Version of the EVM to compile for (optional).
357357
// Affects type checking and code generation. Can be homestead,
358358
// tangerineWhistle, spuriousDragon, byzantium, constantinople,
359359
// petersburg, istanbul, berlin, london, paris, shanghai, cancun (default), prague (experimental) or osaka (experimental).
360360
"evmVersion": "cancun",
361+
// EVM Object Format version to compile for (optional, experimental).
362+
// Currently the only valid value is 1. If not specified, legacy non-EOF bytecode will be generated.
363+
"eofVersion": null,
361364
// Optional: Change compilation pipeline to go through the Yul intermediate representation.
362365
// This is false by default.
363366
"viaIR": true,

0 commit comments

Comments
 (0)