diff --git a/bin/solis/src/hooker.rs b/bin/solis/src/hooker.rs index 46a4a35ae3..d39a7e733d 100644 --- a/bin/solis/src/hooker.rs +++ b/bin/solis/src/hooker.rs @@ -184,16 +184,17 @@ impl } // ERC20 to ERC721 : we check the allowance and the offerer balance. - if order.route == RouteType::Erc20ToErc721 && !self - .verify_balance(&BalanceVerifier { - currency_address: ContractAddress(order.currency_address.into()), - offerer: cainome::cairo_serde::ContractAddress(order.offerer.into()), - start_amount: U256 { - low: order.start_amount.low, - high: order.start_amount.high, - }, - }) - .await + if order.route == RouteType::Erc20ToErc721 + && !self + .verify_balance(&BalanceVerifier { + currency_address: ContractAddress(order.currency_address.into()), + offerer: cainome::cairo_serde::ContractAddress(order.offerer.into()), + start_amount: U256 { + low: order.start_amount.low, + high: order.start_amount.high, + }, + }) + .await { println!("verify balance for starknet before failed"); return false; diff --git a/crates/katana/rpc/rpc/src/starknet.rs b/crates/katana/rpc/rpc/src/starknet.rs index 9f03e4f87a..18f0888652 100644 --- a/crates/katana/rpc/rpc/src/starknet.rs +++ b/crates/katana/rpc/rpc/src/starknet.rs @@ -36,9 +36,9 @@ use katana_rpc_types::{ use katana_rpc_types_builder::ReceiptBuilder; use katana_tasks::{BlockingTaskPool, TokioTaskSpawner}; use starknet::core::types::{ - BlockTag, DeclareTransactionTrace, DeployAccountTransactionTrace, - ExecuteInvocation, InvokeTransactionTrace, L1HandlerTransactionTrace, RevertedInvocation, - SimulatedTransaction, TransactionExecutionStatus, TransactionStatus, TransactionTrace, + BlockTag, DeclareTransactionTrace, DeployAccountTransactionTrace, ExecuteInvocation, + InvokeTransactionTrace, L1HandlerTransactionTrace, RevertedInvocation, SimulatedTransaction, + TransactionExecutionStatus, TransactionStatus, TransactionTrace, }; pub struct StarknetApi {