Skip to content

Commit e66ff12

Browse files
committed
fix: minor BaseLib fix
1 parent 712ce78 commit e66ff12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contracts/libraries/BaseLib.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ library BaseLib {
1515
returns (BaseParams memory baseParams)
1616
{
1717
baseParams.addr = addr;
18+
19+
try IVersion(addr).version() returns (uint256 version) {
20+
baseParams.version = version;
21+
} catch {}
22+
1823
try IVersion(addr).contractType() returns (bytes32 contractType) {
19-
baseParams.version = IVersion(addr).version();
2024
baseParams.contractType = contractType;
2125
} catch {
22-
baseParams.version = 3_00;
2326
baseParams.contractType = defaultContractType;
2427
}
2528

0 commit comments

Comments
 (0)