Skip to content

Commit 08b0345

Browse files
committed
Assert balance_len = sizeof(uint256_t)
1 parent 51c6f57 commit 08b0345

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

category/rpc/monad_executor.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,12 @@ namespace
201201
enriched_txn.sc.r = 1;
202202
enriched_txn.sc.s = 1;
203203

204-
BOOST_OUTCOME_TRY(static_validate_transaction<traits>(
205-
enriched_txn,
206-
header.base_fee_per_gas,
207-
header.excess_blob_gas,
208-
chain.get_chain_id()));
204+
BOOST_OUTCOME_TRY(
205+
static_validate_transaction<traits>(
206+
enriched_txn,
207+
header.base_fee_per_gas,
208+
header.excess_blob_gas,
209+
chain.get_chain_id()));
209210

210211
tdb.set_block_and_prefix(block_number, block_id);
211212
BlockState block_state{tdb, vm};
@@ -601,6 +602,7 @@ void set_override_balance(
601602
MONAD_ASSERT(m->override_sets.find(address) != m->override_sets.end());
602603

603604
MONAD_ASSERT(balance);
605+
MONAD_ASSERT(balance_len == sizeof(uint256_t));
604606
m->override_sets[address].balance = {balance, balance + balance_len};
605607
}
606608

0 commit comments

Comments
 (0)