Skip to content

Commit 535e23b

Browse files
authored
Merge pull request #127 from threshold-network/pragma
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.
2 parents 21cf396 + e9b35ac commit 535e23b

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)