Skip to content

Commit efdc7cd

Browse files
authored
Add ERC-7751 interface (#5816)
1 parent 9904c19 commit efdc7cd

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.changeset/funny-donuts-follow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`IERC7751`: Add the interface for custom error wrapping of bubbled up reverts.

contracts/interfaces/IERC7751.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity >=0.8.4;
4+
5+
/**
6+
* @dev Wrapping of bubbled up reverts
7+
* Interface of the https://eips.ethereum.org/EIPS/eip-7751[ERC-7751] wrapping of bubbled up reverts.
8+
*/
9+
interface IERC7751 {
10+
error WrappedError(address target, bytes4 selector, bytes reason, bytes details);
11+
}

contracts/interfaces/README.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ are useful to interact with third party contracts that implement them.
4545
- {IERC6909Metadata}
4646
- {IERC6909TokenSupply}
4747
- {IERC7674}
48+
- {IERC7751}
4849
- {IERC7786}
4950
- {IERC7802}
5051

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

101102
{{IERC7674}}
102103

104+
{{IERC7751}}
105+
103106
{{IERC7786}}
104107

105108
{{IERC7802}}

0 commit comments

Comments
 (0)