Described tokename dicename length limits

This commit is contained in:
Anton Lysakov
2018-08-28 17:48:47 +07:00
committed by GitHub
parent 881869c081
commit aa54d54529

View File

@@ -149,7 +149,7 @@ class CryptoConditionsTest (BitcoinTestFramework):
result = rpc.dicelist() result = rpc.dicelist()
assert_equal(result, []) assert_equal(result, [])
# creating dice plan with too long name # creating dice plan with too long name (>8 chars)
result = rpc.dicefund("THISISTOOLONG", "10000", "10", "10000", "10", "5") result = rpc.dicefund("THISISTOOLONG", "10000", "10", "10000", "10", "5")
assert_error(result) assert_error(result)
@@ -304,7 +304,7 @@ class CryptoConditionsTest (BitcoinTestFramework):
result = rpc.tokencreate("NUKE", "-1987420", "no bueno supply") result = rpc.tokencreate("NUKE", "-1987420", "no bueno supply")
assert_error(result) assert_error(result)
# creating token with name more than 16 chars # creating token with name more than 32 chars
result = rpc.tokencreate("NUKE123456789012345678901234567890", "1987420", "name too long") result = rpc.tokencreate("NUKE123456789012345678901234567890", "1987420", "name too long")
assert_error(result) assert_error(result)