Skip to content

Commit

Permalink
remove unnecessary tempvar
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Aug 22, 2024
1 parent add3a61 commit b138027
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/kakarot/eth_rpc.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ func eth_send_raw_transaction{
) {
let tx = EthTransaction.decode(tx_data_len, tx_data);

// Whitelisting pre-eip155 or validate chain_id for post eip155
// Validate chain_id for post eip155
let (chain_id) = Kakarot.eth_chain_id();
tempvar is_tx_post_eip155 = is_not_zero(tx.chain_id.is_some);
if (tx.chain_id.is_some != FALSE) {
with_attr error_message("Invalid chain id") {
assert tx.chain_id.value = chain_id;
Expand Down

0 comments on commit b138027

Please sign in to comment.