Skip to content

Commit

Permalink
Merge pull request #127 from threshold-network/pragma
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pdyraga authored Sep 28, 2022
2 parents 21cf396 + e9b35ac commit 535e23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/staking/IApplication.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// ▐████▌ ▐████▌
// ▐████▌ ▐████▌

pragma solidity 0.8.9;
pragma solidity ^0.8.9;

/// @title Application interface for Threshold Network applications
/// @notice Generic interface for an application. Application is an external
Expand Down
2 changes: 1 addition & 1 deletion contracts/staking/IStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// ▐████▌ ▐████▌
// ▐████▌ ▐████▌

pragma solidity 0.8.9;
pragma solidity ^0.8.9;

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

0 comments on commit 535e23b

Please sign in to comment.