Skip to content

Commit

Permalink
change token_id supported length to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockTomeLTD authored and BlockTomeLTD committed Dec 15, 2021
1 parent 9c71141 commit 8c79f50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/fio.address/fio.address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,8 @@ namespace fioio {
n.chain_code = nftobj->chain_code;
n.chain_code_hash = string_to_uint64_hash(nftobj->chain_code.c_str());
if (!nftobj->token_id.empty()) {
fio_400_assert(nftobj->token_id.length() <= 128, "token_id", nftobj->token_id.c_str(), "Invalid Token ID",
ErrorInvalidFioNameFormat);
n.token_id = nftobj->token_id.c_str();
n.token_id_hash = string_to_uint128_hash(string(fio_address.c_str()) +
string(nftobj->contract_address.c_str()) +
Expand Down

0 comments on commit 8c79f50

Please sign in to comment.