Skip to content

Commit

Permalink
Merge pull request #217 from fioprotocol/feature/BD-3098
Browse files Browse the repository at this point in the history
change token_id supported length to 128
  • Loading branch information
0xCasey authored Dec 16, 2021
2 parents 9c71141 + 8c79f50 commit 3173258
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 3173258

Please sign in to comment.