aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-04-13 05:45:11 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:17 +0800
commitc811b710eb59060ad2a544e704027aae71b7bcc2 (patch)
treeb1d4aafc0b4f7872f7ecf6290a232a9bf0810a2c /packages/contracts
parentd0930b90485703937d8d7364cc4c27f7a7de4556 (diff)
downloaddexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar.gz
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar.bz2
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar.lz
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar.xz
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.tar.zst
dexon-sol-tools-c811b710eb59060ad2a544e704027aae71b7bcc2.zip
Explicity declare `memory` for complex types, where possible
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol4
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol4
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol2
3 files changed, 5 insertions, 5 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol
index 66d9d9b4b..bcf6e0a80 100644
--- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol
+++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy.sol
@@ -55,7 +55,7 @@ contract ERC20Proxy is
uint8 assetProxyId,
address tokenAddress)
public pure
- returns (bytes assetMetadata)
+ returns (bytes memory assetMetadata)
{
// 0 is reserved as invalid proxy id
require(assetProxyId != 0);
@@ -70,7 +70,7 @@ contract ERC20Proxy is
/// @dev Decodes ERC20-encoded byte array.
/// @param assetMetadata ERC20-encoded byte array.
/// @return tokenAddress Address of ERC20 token.
- function decodeMetadata(bytes assetMetadata)
+ function decodeMetadata(bytes memory assetMetadata)
public pure
returns (address tokenAddress)
{
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol
index ba84a439c..ec04df8bd 100644
--- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol
+++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC20Proxy_v1.sol
@@ -64,7 +64,7 @@ contract ERC20Proxy_v1 is
uint8 assetProxyId,
address tokenAddress)
public pure
- returns (bytes assetMetadata)
+ returns (bytes memory assetMetadata)
{
// 0 is reserved as invalid proxy id
require(assetProxyId != 0);
@@ -79,7 +79,7 @@ contract ERC20Proxy_v1 is
/// @dev Decodes ERC20-encoded byte array.
/// @param assetMetadata ERC20-encoded byte array.
/// @return tokenAddress Address of ERC20 token.
- function decodeMetadata(bytes assetMetadata)
+ function decodeMetadata(bytes memory assetMetadata)
public pure
returns (address tokenAddress)
{
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
index 8d6cf3202..6e0f46147 100644
--- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
+++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
@@ -67,7 +67,7 @@ contract ERC721Proxy is
address tokenAddress,
uint256 tokenId)
public pure
- returns (bytes assetMetadata)
+ returns (bytes memory assetMetadata)
{
// 0 is reserved as invalid proxy id
require(assetProxyId != 0);