From 5d2c45d7728060f90c9b3e50089f8e1bf72987b9 Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Wed, 22 Feb 2023 00:38:46 -0600 Subject: [PATCH] Use require() for success check in StaticDelegateCallMock addresses PR review comment #4040 r1110331321 --- contracts/mocks/StaticDelegateCallMock.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mocks/StaticDelegateCallMock.sol b/contracts/mocks/StaticDelegateCallMock.sol index 77ba4a1d5..41a11a28f 100644 --- a/contracts/mocks/StaticDelegateCallMock.sol +++ b/contracts/mocks/StaticDelegateCallMock.sol @@ -28,7 +28,7 @@ contract StaticDelegateCallMock is StaticDelegateCall { _implementation, abi.encodeCall(StaticDelegateCallImplementationMock.process, (c)) ); - if (!success) revert("Implementation reverted"); + require(success, "Implementation reverted"); return abi.decode(result, (uint256)); } }