Skip to content

fix(vibenet): explain reverting account transactions - #206

Merged
chunter-cb merged 2 commits into
mainfrom
fix/account-tx-revert-reason
Oct 21, 2026
Merged

chunter-cb merged 2 commits into
mainfrom
fix/account-tx-revert-reason

Conversation

@chunter-cb

@chunter-cb chunter-cb commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A gas estimate that would revert now shows the node's reason (for example "Not enough ERC-20 balance for this transfer") instead of viem's "RPC Request failed."
  • Send Anyway is unchanged. If the transaction is included and reverts, the hash links to the explorer and a View Transaction button sits next to Retry.

Screenshots

Estimate would revert:

Not enough ERC-20 balance, with Send Anyway

Included and reverted, hash linked to the explorer:

Transaction reverted onchain with an explorer link

Test plan

  • npx vitest run app/vibenet/demos/account/library/revertReason.test.ts
  • On /vibenet/demos/account, send a USDV transfer larger than the balance and confirm the balance message and Send Anyway
  • Send Anyway and confirm the included revert shows the hash as an explorer link plus View Transaction

Gas estimates were showing viem's "RPC Request failed" instead of the node's revert reason, and an included revert printed the hash as plain text.
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
omni-ui Ready Ready Preview Oct 20, 2026 4:11pm UTC

Request Review

@cb-heimdall

cb-heimdall commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews ✅ 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

The hash was wrapping mid-string inside the sentence. It now sits on its own line.
@chunter-cb
chunter-cb added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 0694b72 Oct 21, 2026
13 checks passed
@chunter-cb
chunter-cb deleted the fix/account-tx-revert-reason branch October 21, 2026 19:02

This branch was successfully deployed

1 active deployment
Preview — 51176185 Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants