From 45047263118539152c26031a23877aea44567acc Mon Sep 17 00:00:00 2001 From: Gilad Chase Date: Sun, 7 Jul 2024 11:09:23 +0300 Subject: [PATCH] fix: fix nonce type in mempool_test --- crates/mempool/src/mempool_test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/mempool/src/mempool_test.rs b/crates/mempool/src/mempool_test.rs index 5c761e0e..df5981ae 100644 --- a/crates/mempool/src/mempool_test.rs +++ b/crates/mempool/src/mempool_test.rs @@ -31,17 +31,17 @@ macro_rules! add_tx_input { tip: Tip($tip), tx_hash: TransactionHash(StarkHash::from($tx_hash)), sender_address, - nonce: Nonce($nonce), + nonce: Nonce(felt!($nonce)), }; MempoolInput { tx, account } }}; // Pattern for three arguments. (tip: $tip:expr, tx_hash: $tx_hash:expr, sender_address: $sender_address:expr) => { - add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: $sender_address, nonce: Felt::ZERO) + add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: $sender_address, nonce: 0_u8) }; // Pattern for two arguments. (tip: $tip:expr, tx_hash: $tx_hash:expr) => { - add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: "0x0", nonce: Felt::ZERO) + add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: "0x0", nonce: 0_u8) }; }