Skip to content

Commit

Permalink
Merge branch 'vm/verkle-testing' of https://github.com/ethereumjs/eth…
Browse files Browse the repository at this point in the history
…ereumjs-monorepo into vm/verkle-testing
  • Loading branch information
gabrocheleau committed Dec 24, 2024
2 parents cc351fd + ee00f50 commit 92ff519
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/vm/src/runBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
BIGINT_8,
GWEI_TO_WEI,
KECCAK256_RLP,
VERKLE_BASIC_DATA_LEAF_KEY,
VERKLE_CODE_HASH_LEAF_KEY,
bigIntToAddressBytes,
bigIntToBytes,
bytesToHex,
Expand Down Expand Up @@ -762,7 +764,16 @@ export async function rewardAccount(
if (evm.systemVerkleAccessWitness === undefined) {
throw Error(`verkleAccessWitness required if verkle (EIP-6800) is activated`)
}
evm.systemVerkleAccessWitness.touchAndChargeProofOfAbsence(address)
evm.systemVerkleAccessWitness.touchAddressOnWriteAndComputeGas(
address,
0,
VERKLE_BASIC_DATA_LEAF_KEY,
)
evm.systemVerkleAccessWitness.touchAddressOnWriteAndComputeGas(
address,
0,
VERKLE_CODE_HASH_LEAF_KEY,
)
}
account = new Account()
}
Expand Down

0 comments on commit 92ff519

Please sign in to comment.