Skip to content

Commit 1b5c61c

Browse files
authored
Merge pull request #34 from ethereum/remove-code-example
fillers/example: Remove unnecessary Yul output bytecode verification
2 parents 0077aac + 3eb0054 commit 1b5c61c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,15 @@ The python representation can be found in [src/ethereum_test_tools/common/types.
266266
It can verify the following properties of an account:
267267
- `nonce`: the scalar value equal to a) the number of transactions sent by
268268
an Externally Owned Account, b) the amount of contracts created by a contract.
269+
269270
- `balance`: the amount of Wei (10<sup>-18</sup> Eth) the account has.
271+
270272
- `code`: Bytecode contained by the account. To verify that an account contains
271273
no code, this property needs to be set to "0x" or "".
274+
275+
It is not recommended to verify Yul compiled code in the output account,
276+
because the bytecode can change from version to version.
277+
272278
- `storage`: Storage within the account represented as a `dict` object.
273279
All storage keys that are expected to be set must be specified, and if a
274280
key is skipped, it is implied that its expected value is zero.

fillers/example/example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def test_yul(fork):
5151

5252
post = {
5353
"0x1000000000000000000000000000000000000000": Account(
54-
code="""0x6010565b6000828201905092915050565b
55-
601a600260016003565b60005560206000f3""",
5654
storage={
5755
0x00: 0x03,
5856
},

0 commit comments

Comments
 (0)