Skip to content

Commit

Permalink
fix: fix nonce type in mempool_test (#375)
Browse files Browse the repository at this point in the history
Co-Authored-By: Gilad Chase <[email protected]>
  • Loading branch information
giladchase and Gilad Chase authored Jul 7, 2024
1 parent a2b8df2 commit 33cc1d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/mempool/src/mempool_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
}

Expand Down

0 comments on commit 33cc1d3

Please sign in to comment.