We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f266e commit 847c823Copy full SHA for 847c823
src/Utils.sol
@@ -16,3 +16,13 @@ function fromUniversalAddress(bytes32 universalAddr) pure returns (address addr)
16
addr := universalAddr
17
}
18
19
+
20
+/**
21
+ * Reverts with a given buffer data.
22
+ * Meant to be used to easily bubble up errors from low level calls when they fail.
23
+ */
24
+function reRevert(bytes memory err) pure {
25
+ assembly ("memory-safe") {
26
+ revert(add(err, 32), mload(err))
27
+ }
28
+}
0 commit comments