diff --git a/crates/evm/src/backend/validation.cairo b/crates/evm/src/backend/validation.cairo index 17b8da15c..6eb053e7e 100644 --- a/crates/evm/src/backend/validation.cairo +++ b/crates/evm/src/backend/validation.cairo @@ -32,7 +32,9 @@ pub fn validate_eth_tx(kakarot_state: @KakarotCore::ContractState, tx: Transacti // Validate nonce let starknet_caller_address = get_caller_address(); let account = IAccountDispatcher { contract_address: starknet_caller_address }; - assert(account.get_nonce() == tx.nonce(), 'Invalid nonce'); + let eth_address = account.get_evm_address(); + let nonce = kakarot_state.eth_get_transaction_count(eth_address); + assert(nonce == tx.nonce(), 'Invalid nonce'); // Validate gas let gas_limit = tx.gas_limit();