Skip to content

Commit

Permalink
fix rewardAccount to write account into trie
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Dec 24, 2024
1 parent 6449b5e commit ee00f50
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 ee00f50

Please sign in to comment.