-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Upgrade to Solidity v0.8.0 #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
/** | ||
* @dev Added for retrocompatibility! | ||
* | ||
* @dev Returns the base URI set via {setBaseURI}. This will be | ||
* automatically added as a prefix in {tokenURI} to each token's ID. | ||
*/ | ||
function baseURI() public view returns (string memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used outside of the PoCo project:
https://github.com/search?q=org%3AiExecBlockchainComputing+baseURI&type=code
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #287 +/- ##
==========================================
+ Coverage 84.85% 89.84% +4.99%
==========================================
Files 37 38 +1
Lines 1241 1201 -40
Branches 235 236 +1
==========================================
+ Hits 1053 1079 +26
+ Misses 188 122 -66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
import {PocoStorageLib} from "../libs/PocoStorageLib.sol"; | ||
import {FacetBase} from "./FacetBase.sol"; | ||
|
||
// TODO uncomment and fix file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
// try address(0)(_identity).isValidSignature(_hash, _signature) returns (bytes4 value) { | ||
// return value == address(0)(address(0)).isValidSignature.selector; | ||
// } catch (bytes memory /*lowLevelData*/) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
// try IERC1271(_identity).isValidSignature(_predicat, _signature) returns (bytes4 value) { | ||
// return value == IERC1271(address(0)).isValidSignature.selector; | ||
// } catch (bytes memory /*lowLevelData*/) {} | ||
|
||
// try IERC1654(_identity).isValidSignature(keccak256(_predicat), _signature) returns ( | ||
// bytes4 value | ||
// ) { | ||
// return value == IERC1654(0).isValidSignature.selector; | ||
// } catch (bytes memory /*lowLevelData*/) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
IexecConfigurationExtra, | ||
IexecERC20, | ||
IexecERC20Common, | ||
IexecERC20, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To resolve compiler dependency linearisation issue.
Notes
contracts/facets/IexecEscrowTokenSwapFacet.sol
has been removed to minimize upgrade overhead. It shouldn't break any user interaction because the module was not deployed on Bellecour nor Arbitrum.Breaking changes
All modified tests are to be considered as breaking changes.
Next steps:
>=0.6.0
to^0.8.0
@openzeppelin/contracts (v3)
@openzeppelin/contracts-v5
to@openzeppelin/contracts
iexec-solidity
iexec-interfaces