Skip to content

Add helpers for revert and custom errors with Error type#378

Merged
rodrigogribeiro merged 14 commits into
argotorg:mainfrom
axic:reverts
May 15, 2026
Merged

Add helpers for revert and custom errors with Error type#378
rodrigogribeiro merged 14 commits into
argotorg:mainfrom
axic:reverts

Conversation

@axic

@axic axic commented May 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@axic axic force-pushed the reverts branch 2 times, most recently from 9fae86b to 1e34461 Compare May 14, 2026 19:57

@rodrigogribeiro rodrigogribeiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

Comment thread std/std.solc
function unimplemented() -> () {
assembly {
mstore(0, 0xaddc0de1)
revert(0, 4)

@axic axic May 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note all of these did return 0x00000000 in the past, because words are big endian in memory, and thus revert(28, 4) would have positioned it correctly.

@rodrigogribeiro rodrigogribeiro merged commit 84aed6e into argotorg:main May 15, 2026
4 checks passed
@axic axic deleted the reverts branch May 15, 2026 16:39
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.

2 participants