From 160918c49d0a4fee3330e728dcb853ae295e9d57 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Tue, 8 Jun 2021 00:32:41 +0800 Subject: [PATCH] Fix tests failing on solc 0.8.0 or above (#310) --- ethers-middleware/tests/solidity-contracts/DSProxy.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-middleware/tests/solidity-contracts/DSProxy.sol b/ethers-middleware/tests/solidity-contracts/DSProxy.sol index 9bf010f5..267d90cf 100644 --- a/ethers-middleware/tests/solidity-contracts/DSProxy.sol +++ b/ethers-middleware/tests/solidity-contracts/DSProxy.sol @@ -48,7 +48,7 @@ contract DSAuth is DSAuthEvents { return true; } else if (src == owner) { return true; - } else if (authority == DSAuthority(0)) { + } else if (authority == DSAuthority(address(uint160(0)))) { return false; } else { return authority.canCall(src, address(this), sig);