Skip to content

Commit

Permalink
vm/tests/util: make storage comments more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed May 25, 2022
1 parent 395479c commit 862fbb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vm/tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function verifyAccountPostConditions(

if (val !== hashedStorage[key]) {
t.comment(
`Expected storage key 0x${data.key.toString('hex')} to have value ${
`Expected storage key 0x${data.key.toString('hex')} at address ${address} to have value ${
hashedStorage[key] ?? '0x'
}, but got ${val}}`
)
Expand All @@ -222,7 +222,7 @@ export function verifyAccountPostConditions(
rs.on('end', function () {
for (const key in hashedStorage) {
if (hashedStorage[key] !== '0x00') {
t.comment('key: ' + key + ' not found in storage')
t.comment(`key: ${key} not found in storage at address ${address}`)
}
}

Expand Down

0 comments on commit 862fbb8

Please sign in to comment.