Commit 373d73b
committed
fix(predict): skip allowancesTx when Safe fee auth is used to avoid nonce conflict
Both createSafeFeeAuthorization and getProxyWalletAllowancesTransaction
read the same on-chain Safe nonce. If both execute in the same placeOrder
call, the relay invalidates one when executing the other. Guard the
allowancesTx block with hasSafeFeeAuth to skip it when a Safe fee
authorization was already signed.
Also remove unused fees param from setupAllowancesTxTest helper.1 parent 6e73c71 commit 373d73b
File tree
2 files changed
+9
-4
lines changed- app/components/UI/Predict/providers/polymarket
2 files changed
+9
-4
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2023 | 2023 | | |
2024 | 2024 | | |
2025 | 2025 | | |
2026 | | - | |
2027 | 2026 | | |
2028 | 2027 | | |
2029 | 2028 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1236 | 1239 | | |
1237 | 1240 | | |
1238 | 1241 | | |
1239 | 1242 | | |
1240 | 1243 | | |
1241 | | - | |
1242 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1243 | 1249 | | |
1244 | | - | |
| 1250 | + | |
1245 | 1251 | | |
1246 | 1252 | | |
1247 | 1253 | | |
| |||
0 commit comments