Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Fix tests failing on solc 0.8.0 or above #310

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethers-middleware/tests/solidity-contracts/DSProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down