-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated repository to solidity 0.5.0
All contracts now have the `^0.5.0` pragma. There were quite some changes required to port the code. The most notable changes are: * In the `KernelGateway` there was a problem with the mapping to a struct that contained two structs. Instead, there are now two separate mappings for the contained structs of the original mapping. * You cannot create functions anymore that have the same name that a function created from a public variable has (shadow). I had to rename some interface and contract methods to avoid the collision. * Very important to check are the changes to the library contracts. * The test util `expectThrow` now also expects an "invalid address" passed to a function. * When casting from `uint` to fixed size bytes (e.g. `bytes32`), uints must first be cast to the correct bytelength uint type. * When using the address of a contract, it is now explicitly cast to `address`. * When casting a contract to a different interface, it must be cast to `address` first. * Some functions were re-ordered based on their visibility modifiers. * Some style guide related clean-up. Fixes #479
- Loading branch information
Showing
91 changed files
with
3,481 additions
and
3,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity ^0.4.23; | ||
pragma solidity ^0.5.0; | ||
|
||
// Copyright 2018 OpenST Ltd. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity ^0.4.23; | ||
pragma solidity ^0.5.0; | ||
|
||
// Copyright 2018 OpenST Ltd. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity ^0.4.23; | ||
pragma solidity ^0.5.0; | ||
|
||
// Copyright 2018 OpenST Ltd. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.