check_correctness in swaps
@@ -11,7 +11,7 @@ use num::{BigUint, Zero};
use serde::{Deserialize, Serialize};
use zksync_basic_types::Address;
use zksync_crypto::franklin_crypto::eddsa::PrivateKey;
-use zksync_crypto::params::{max_account_id, max_token_id};
+use zksync_crypto::params::{max_account_id, max_fungible_token_id, max_token_id};
use zksync_utils::{format_units, BigUintPairSerdeAsRadix10Str, BigUintSerdeAsRadix10Str};
use super::{TxSignature, VerifiedSignatureCache};
@@ -193,7 +193,7 @@ impl Swap {
pub fn check_correctness(&mut self) -> bool {
let mut valid = self.check_amounts()
&& self.submitter_id <= max_account_id()
- && self.fee_token <= max_token_id()
+ && self.fee_token <= max_fungible_token_id()
&& self.orders.0.check_correctness()
&& self.orders.1.check_correctness()
&& self.time_range().check_correctness();
