Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e committed Dec 3, 2024
1 parent 4468730 commit 99f4f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion e2e/tests/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ async fn transactions_with_the_same_utxo() -> Result<()> {
err,
Error::Transaction(transaction::Reason::Validation(..))
));
assert!(err.to_string().contains("already in cache"));
assert!(err
.to_string()
.contains("was submitted recently in a transaction "));

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels-accounts/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl Provider {
CoinTypeId::Nonce(nonce) => format!("message with nonce: `{nonce}`"),
};
Err(Error::Transaction(transaction::Reason::Validation(
format!("{msg} already in cache. Wallet address: `{addr}`, asset id: `{asset_id}`"),
format!("{msg} was submitted recently in a transaction - attempting to spend it again will result in an error. Wallet address: `{addr}`, asset id: `{asset_id}`"),
)))
} else {
Ok(())
Expand Down

0 comments on commit 99f4f60

Please sign in to comment.