Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/funny-donuts-follow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---

`IERC7751`: Add the interface for custom error wrapping of bubbled up reverts.
11 changes: 11 additions & 0 deletions contracts/interfaces/IERC7751.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.4;

/**
* @dev Wrapping of bubbled up reverts
* Interface of the https://eips.ethereum.org/EIPS/eip-7751[ERC-7751] wrapping of bubbled up reverts.
*/
interface IERC7751 {
error WrappedError(address target, bytes4 selector, bytes reason, bytes details);
}
3 changes: 3 additions & 0 deletions contracts/interfaces/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ are useful to interact with third party contracts that implement them.
- {IERC6909Metadata}
- {IERC6909TokenSupply}
- {IERC7674}
- {IERC7751}
- {IERC7786}
- {IERC7802}

Expand Down Expand Up @@ -100,6 +101,8 @@ are useful to interact with third party contracts that implement them.

{{IERC7674}}

{{IERC7751}}

{{IERC7786}}

{{IERC7802}}