Skip to content

Commit

Permalink
Merge pull request #48 from jsign/jsign-fix-sstore
Browse files Browse the repository at this point in the history
verkle: fix sstore
  • Loading branch information
spencer-tb authored Sep 5, 2024
2 parents 079cd0d + d6800f9 commit 4665612
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/verkle/eip4762_verkle_gas_witness/test_sstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
WitnessCheck,
)
from ethereum_test_tools.vm.opcode import Opcodes as Op
from ethereum_test_types.verkle.types import Hash

# TODO(verkle): Update reference spec version
REFERENCE_SPEC_GIT_PATH = "EIPS/eip-4762.md"
REFERENCE_SPEC_VERSION = "2f8299df31bb8173618901a03a8366a3183479b0"

TestAddress2Storage = {0: 0xAA, 1000: 0xBB}
TestAddress2Storage: dict[int, Hash] = {0: Hash(0xAA), 1000: Hash(0xBB)}


# TODO(verkle): update to Osaka when t8n supports the fork.
Expand Down Expand Up @@ -153,7 +154,7 @@ def _sstore(
for address in [TestAddress, TestAddress2, env.fee_recipient]:
witness_check.add_account_full(
address=address,
account=(None if address == env.fee_recipient else pre[address]),
account=pre.get(address),
)

blocks = [
Expand Down

0 comments on commit 4665612

Please sign in to comment.