Use require() for success check in StaticDelegateCallMock

addresses PR review comment #4040 r1110331321
pull/4040/head
Vanya A. Sergeev 2 years ago
parent 6e749d3ca2
commit 5d2c45d772
  1. 2
      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));
}
}

Loading…
Cancel
Save