Skip to content

Commit 318b8b7

Browse files
committed
Assert balance_len = sizeof(uint256_t)
1 parent d357940 commit 318b8b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

category/rpc/eth_call.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ void set_override_balance(
298298
MONAD_ASSERT(m->override_sets.find(address) != m->override_sets.end());
299299

300300
MONAD_ASSERT(balance);
301+
MONAD_ASSERT(balance_len == sizeof(uint256_t));
301302
byte_string const b{balance, balance + balance_len};
302303
m->override_sets[address].balance = std::move(b);
303304
}

0 commit comments

Comments
 (0)