Fixed after rebase
This commit is contained in:
@@ -56,7 +56,7 @@ contract ERC20Proxy is
|
||||
// Data must be intended for this proxy.
|
||||
require(
|
||||
proxyId == PROXY_ID,
|
||||
PROXY_ID_MISMATCH
|
||||
ASSET_PROXY_ID_MISMATCH
|
||||
);
|
||||
|
||||
// Transfer tokens.
|
||||
@@ -93,7 +93,7 @@ contract ERC20Proxy is
|
||||
uint256 length = assetData.length;
|
||||
require(
|
||||
assetData.length == 21,
|
||||
INVALID_ASSET_DATA_LENGTH
|
||||
LENGTH_21_REQUIRED
|
||||
);
|
||||
|
||||
// Decode data
|
||||
|
||||
@@ -109,7 +109,7 @@ contract ERC721Proxy is
|
||||
uint256 length = assetData.length;
|
||||
require(
|
||||
assetData.length >= 53,
|
||||
INVALID_ASSET_DATA_LENGTH
|
||||
LENGTH_AT_LEAST_53_REQUIRED
|
||||
);
|
||||
|
||||
// Decode asset data.
|
||||
|
||||
@@ -29,9 +29,9 @@ contract LibAssetProxyErrors {
|
||||
/// AssetProxy errors ///
|
||||
string constant ASSET_PROXY_ID_MISMATCH = "ASSET_PROXY_ID_MISMATCH"; // Proxy id in metadata does not match this proxy id.
|
||||
string constant INVALID_AMOUNT = "INVALID_AMOUNT"; // Transfer amount must equal 1.
|
||||
string constant TRANSFER_FAILED = "TRANSFER_FAILED"; // Transfer failed.
|
||||
string constant TRANSFER_FAILED = "TRANSFER_FAILED"; // Transfer failed.
|
||||
|
||||
/// Length validation errors ///
|
||||
string constant LENGTH_21_REQUIRED = "LENGTH_21_REQUIRED"; // Byte array must have a length of 21.
|
||||
string constant LENGTH_53_REQUIRED = "LENGTH_53_REQUIRED"; // Byte array must have a length of 53.
|
||||
string constant LENGTH_AT_LEAST_53_REQUIRED = "LENGTH_AT_LEAST_53_REQUIRED"; // Byte array must have a length of at least 53.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user