mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: convert hash field to OnceLock<TxHash> on TransactionSigned (#12596)
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
This commit is contained in:
@ -725,7 +725,10 @@ mod tests {
|
||||
provider.transaction_sender(0), Ok(Some(sender))
|
||||
if sender == block.body.transactions[0].recover_signer().unwrap()
|
||||
);
|
||||
assert_matches!(provider.transaction_id(block.body.transactions[0].hash), Ok(Some(0)));
|
||||
assert_matches!(
|
||||
provider.transaction_id(block.body.transactions[0].hash()),
|
||||
Ok(Some(0))
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
@ -743,7 +746,7 @@ mod tests {
|
||||
Ok(_)
|
||||
);
|
||||
assert_matches!(provider.transaction_sender(0), Ok(None));
|
||||
assert_matches!(provider.transaction_id(block.body.transactions[0].hash), Ok(None));
|
||||
assert_matches!(provider.transaction_id(block.body.transactions[0].hash()), Ok(None));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user