Skip to content

Commit e9b35ac

Browse files
committed
Use floating pragma for IApplication and IStaking interfaces
Pragma statements are fine to float when a contract is intended for consumption by contracts from another project. This is the case for IApplication and IStaking that are imported from tBTC v2 contracts. If we do not use the floating pragma, all tBTC v2 contracts would need to stay on 0.8.9 and now use the more recent Solidity versions.
1 parent 21cf396 commit e9b35ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/staking/IApplication.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// ▐████▌ ▐████▌
1414
// ▐████▌ ▐████▌
1515

16-
pragma solidity 0.8.9;
16+
pragma solidity ^0.8.9;
1717

1818
/// @title Application interface for Threshold Network applications
1919
/// @notice Generic interface for an application. Application is an external

contracts/staking/IStaking.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// ▐████▌ ▐████▌
1414
// ▐████▌ ▐████▌
1515

16-
pragma solidity 0.8.9;
16+
pragma solidity ^0.8.9;
1717

1818
/// @title Interface of Threshold Network staking contract
1919
/// @notice The staking contract enables T owners to have their wallets offline

0 commit comments

Comments
 (0)