aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/corion/premium.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-08 04:12:52 +0800
committerchriseth <chris@ethereum.org>2018-08-15 00:53:06 +0800
commitb30da8859a35065aafed3b2d9aeea5e0941e80c8 (patch)
tree236bfa1341501a4405530feab437caf192fb6c95 /test/compilationTests/corion/premium.sol
parent13905a2094d454aa94259412a3cf20a5f8176fff (diff)
downloaddexon-solidity-b30da8859a35065aafed3b2d9aeea5e0941e80c8.tar.gz
dexon-solidity-b30da8859a35065aafed3b2d9aeea5e0941e80c8.tar.zst
dexon-solidity-b30da8859a35065aafed3b2d9aeea5e0941e80c8.zip
Update external tests.
Diffstat (limited to 'test/compilationTests/corion/premium.sol')
-rw-r--r--test/compilationTests/corion/premium.sol8
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.