diff options
author | chriseth <chris@ethereum.org> | 2018-08-15 03:38:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 03:38:07 +0800 |
commit | cc54f6c4256cdccf4b25586ed63800caa836d9c6 (patch) | |
tree | 11fe607f1acbc6daaa8d17b30ac45db2f7981d77 /test/compilationTests/corion/premium.sol | |
parent | 8f27fb1f4a14f369e8feb3ea22a38d50998cad5c (diff) | |
parent | 14e116c1d57e1797e7206299d0fdfed2aa03cdf2 (diff) | |
download | dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.gz dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.zst dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.zip |
Merge pull request #4738 from ethereum/dataloc_merged
Enforce data location.
Diffstat (limited to 'test/compilationTests/corion/premium.sol')
-rw-r--r-- | test/compilationTests/corion/premium.sol | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/compilationTests/corion/premium.sol b/test/compilationTests/corion/premium.sol index 65895f33..84277a99 100644 --- a/test/compilationTests/corion/premium.sol +++ b/test/compilationTests/corion/premium.sol @@ -5,8 +5,8 @@ import "./tokenDB.sol"; import "./module.sol"; contract thirdPartyPContractAbstract { - function receiveCorionPremiumToken(address, uint256, bytes) external returns (bool, uint256) {} - function approvedCorionPremiumToken(address, uint256, bytes) external returns (bool) {} + function receiveCorionPremiumToken(address, uint256, bytes calldata) external returns (bool, uint256) {} + function approvedCorionPremiumToken(address, uint256, bytes calldata) external returns (bool) {} } contract ptokenDB is tokenDB {} @@ -108,7 +108,7 @@ contract premium is module, safeMath { * @param extraData Data to give forward to the receiver * @return True if the approval was successful */ - function approveAndCall(address spender, uint256 amount, uint256 nonce, bytes extraData) isReady external returns (bool success) { + function approveAndCall(address spender, uint256 amount, uint256 nonce, bytes calldata extraData) isReady external returns (bool success) { /* Authorize another address to use an exact amount of the principal’s balance. After the transaction the approvedCorionPremiumToken function of the address will be called with the given data. @@ -226,7 +226,7 @@ contract premium is module, safeMath { * @param extraData Data to give forward to the receiver * @return Whether the transfer was successful or not */ - function transfer(address to, uint256 amount, bytes extraData) isReady external returns (bool success) { + function transfer(address to, uint256 amount, bytes calldata extraData) isReady external returns (bool success) { /* Launch a transaction where we transfer from a given address to another one. After thetransaction the approvedCorionPremiumToken function of the receiver’s address is going to be called with the given data. |