Unverified Commit 1b77799a authored by Steve Gerbino's avatar Steve Gerbino Committed by GitHub

Merge pull request #472 from steemit/470-smt-transfer-to-vesting

Remove NAI checksum assertions
parents 058df656 ec48736b
......@@ -128,9 +128,6 @@ Types.asset = {
nai = Math.floor(nai / 10);
let expected_checksum = damm_checksum_8digit(nai)
//if(checksum != expected_checksum)
// throw new Error("Checksums do not match, expected " + expected_checksum + " actual " + checksum)
switch(object["nai"])
{
case "@@000000021":
......@@ -167,9 +164,6 @@ Types.asset = {
let checksum = nai % 10
nai = Math.floor(nai / 10);
let expected_checksum = damm_checksum_8digit(nai)
if(checksum != expected_checksum)
throw new Error("Checksums do not match, expected " + expected_checksum + " actual " + checksum)
}
else if(symbol.length > 6)
throw new Error("Symbols are not longer than 6 characters " + symbol + "-"+ symbol.length)
......@@ -249,9 +243,6 @@ Types.asset_symbol = {
nai = Math.floor(nai / 10);
let expected_checksum = damm_checksum_8digit(nai)
//if(checksum != expected_checksum)
// throw new Error("Checksums do not match, expected " + expected_checksum + " actual " + checksum)
let precision = 0;
let symbol = "";
switch(object["nai"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment