Fix tests failing on solc 0.8.0 or above (#310)

This commit is contained in:
Jonathan LEI 2021-06-08 00:32:41 +08:00 committed by GitHub
parent 73020af0a7
commit 160918c49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ contract DSAuth is DSAuthEvents {
return true; return true;
} else if (src == owner) { } else if (src == owner) {
return true; return true;
} else if (authority == DSAuthority(0)) { } else if (authority == DSAuthority(address(uint160(0)))) {
return false; return false;
} else { } else {
return authority.canCall(src, address(this), sig); return authority.canCall(src, address(this), sig);