Stop the post or bid when the approve doesn't succeed #23

Merged
Taskuler-bot merged 1 commit from fix/approve-receipt-status into main 2026-11-30 02:22:58 +00:00
Member

Follow-up to #22. Merge after #14–#22, in order. Branch = #22 (1f6feb1) + one commit.

  • Before sending the post or bid, check that the approve's receipt shows success, not only who sent it. If the approve reverted, the flow stops and nothing else is sent (the post or bid would only revert too).
  • Reuses the existing message 'The transaction reverted on Arbitrum Sepolia.', now one shared constant with the same text. No user-facing copy changes.
  • Test: a reverted approve sends only the approve, and the post is never sent.

Tests: this branch passes 199/199 tests, both tsc checks and the testnet build. A local merge of #14→#22 and then this PR passes 207/207, tsc and the build. The only conflict is the known #15 import. Tests make no network calls.

Follow-up to #22. Merge **after #14–#22**, in order. Branch = #22 (`1f6feb1`) + one commit. - Before sending the post or bid, check that the approve's receipt shows success, not only who sent it. If the approve reverted, the flow stops and nothing else is sent (the post or bid would only revert too). - Reuses the existing message 'The transaction reverted on Arbitrum Sepolia.', now one shared constant with the same text. **No user-facing copy changes.** - Test: a reverted approve sends only the approve, and the post is never sent. **Tests:** this branch passes 199/199 tests, both `tsc` checks and the testnet build. A local merge of #14→#22 and then this PR passes 207/207, `tsc` and the build. The only conflict is the known #15 import. Tests make no network calls.
Checks the approve receipt's status before sending the next write, reusing the existing reverted-transaction
message. Adds a test.
george approved these changes 2026-11-30 01:56:53 +00:00
Taskuler-bot changed target branch from fix/sanctions-lookup-budget to main 2026-11-30 02:22:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!23
No description provided.