You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a developer tries to send multiple of the same transactions in the same group the group will get rejected because of duplicate transactions. This is exasperated by the caching of suggestedParams (which is largely a good change) which might be non-obvious to developers who are used to each txn getting new suggestedParams (thus different fv/lv).
If the composer detects multiple transactions in the same group it should throw an error with a descriptive error message of what happened. This error message should mention cached params, how to invalidate the cache, and/or how to use txn fields to make transactions unique.
Pros and Cons
Non breaking change with a more descriptive error message
Dependencies
None
The text was updated successfully, but these errors were encountered:
joe-p
changed the title
The composer should throw an helpful error message on duplicate transactions
The composer should throw a helpful error message on duplicate transactions
Jan 7, 2025
Problem
If a developer tries to send multiple of the same transactions in the same group the group will get rejected because of duplicate transactions. This is exasperated by the caching of
suggestedParams
(which is largely a good change) which might be non-obvious to developers who are used to each txn getting newsuggestedParams
(thus different fv/lv).For example:
Solution
Proposal
If the composer detects multiple transactions in the same group it should throw an error with a descriptive error message of what happened. This error message should mention cached params, how to invalidate the cache, and/or how to use txn fields to make transactions unique.
Pros and Cons
Non breaking change with a more descriptive error message
Dependencies
None
The text was updated successfully, but these errors were encountered: