-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow multiple providers to be set on creation
return data from forwarded calls in meta transaction provider upgrade to solidity 0.5.0 upgrade to truffle 5.0.0-beta.2 keep tests up to date
- Loading branch information
Noah Zinsmeister
committed
Nov 26, 2018
1 parent
bcca21f
commit c460bcd
Showing
23 changed files
with
325 additions
and
192 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
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.24; | ||
pragma solidity ^0.5.0; | ||
|
||
contract Migrations { | ||
address public owner; | ||
|
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
11 changes: 7 additions & 4 deletions
11
contracts/examples/Providers/MetaTransactions/Forwarder.sol
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,11 +1,14 @@ | ||
pragma solidity ^0.4.24; | ||
pragma solidity ^0.5.0; | ||
|
||
contract ForwarderInterface { | ||
function forwardCall(address destination, bytes memory data) public; | ||
function forwardCall(address destination, bytes memory data) public returns (bytes memory returnData); | ||
} | ||
|
||
contract Forwarder is ForwarderInterface { | ||
function forwardCall(address destination, bytes memory data) public { | ||
require(destination.call(data), "Call was not successful."); // solium-disable-line security/no-low-level-calls | ||
function forwardCall(address destination, bytes memory data) public returns (bytes memory returnData) { | ||
// solium-disable-next-line security/no-low-level-calls | ||
(bool success, bytes memory _returnData) = destination.call(data); | ||
require(success, "Call was not successful."); | ||
return _returnData; | ||
} | ||
} |
Oops, something went wrong.