Skip to content

Commit ee00f50

Browse files
committed
fix rewardAccount to write account into trie
1 parent 6449b5e commit ee00f50

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/vm/src/runBlock.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import {
1313
BIGINT_8,
1414
GWEI_TO_WEI,
1515
KECCAK256_RLP,
16+
VERKLE_BASIC_DATA_LEAF_KEY,
17+
VERKLE_CODE_HASH_LEAF_KEY,
1618
bigIntToAddressBytes,
1719
bigIntToBytes,
1820
bytesToHex,
@@ -762,7 +764,16 @@ export async function rewardAccount(
762764
if (evm.systemVerkleAccessWitness === undefined) {
763765
throw Error(`verkleAccessWitness required if verkle (EIP-6800) is activated`)
764766
}
765-
evm.systemVerkleAccessWitness.touchAndChargeProofOfAbsence(address)
767+
evm.systemVerkleAccessWitness.touchAddressOnWriteAndComputeGas(
768+
address,
769+
0,
770+
VERKLE_BASIC_DATA_LEAF_KEY,
771+
)
772+
evm.systemVerkleAccessWitness.touchAddressOnWriteAndComputeGas(
773+
address,
774+
0,
775+
VERKLE_CODE_HASH_LEAF_KEY,
776+
)
766777
}
767778
account = new Account()
768779
}

0 commit comments

Comments
 (0)