Fixed after rebase

This commit is contained in:
Greg Hysen
2018-06-04 19:40:01 -07:00
parent 12e2bfc794
commit a1b49d8389
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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.
}