web3wagmi
← All standards

ERC-7751 Wrapping of bubbled up reverts

FinalERCcreated 2024-08-06

Handling bubbled up reverts using custom errors with additional context

Authors: Daniel Gretzke (@gretzke), Sara Reynolds (@snreynolds), Alice Henshaw (@hensha256), Marko Veniger, Hadrien Croubois (@Amxx)

Functions this standard introduces (5)

0x92e842c0foo(address,bytes)
0x12c09793test_BubbledNestedReverts(uint256)
0xa9059cbbtransfer(address,uint256)
0xf3fef3a3withdraw(address,uint256)
0x2e1a7d4dwithdraw(uint256)

Events (1)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efTransfer(address,address,uint256)

Custom errors (3)

0x90bfb865WrappedError(address,bytes4,bytes,bytes)
0x4c4537b1ERC20TransferFailed(address)
0xd35f45deMyCustomError(uint256)

What the specification covers

Compare with

Parsed from the canonical specification · discussion