Skip to content

Commit

Permalink
fix: nonce has no from other than trivial one (#342)
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 2, 2024
1 parent a78159d commit d7802ae
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 @@ -25,17 +25,17 @@ macro_rules! add_tx_input {
tip: Tip($tip),
tx_hash: TransactionHash($tx_hash),
sender_address,
nonce: Nonce::from($nonce),
nonce: Nonce($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: Nonce::default())
add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: $sender_address, nonce: StarkFelt::ZERO)
};
// Pattern for two arguments.
(tip: $tip:expr, tx_hash: $tx_hash:expr) => {
add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: ContractAddress::default(), nonce: Nonce::default())
add_tx_input!(tip: $tip, tx_hash: $tx_hash, sender_address: ContractAddress::default(), nonce: StarkFelt::ZERO)
};
}

Expand Down

0 comments on commit d7802ae

Please sign in to comment.