forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase ASA URL size (algorand#2147)
Increase the ASA URL size from a limiting 32 bytes to 96 bytes to support NFTs with longer IPFS URLs.
Closes algorand/go-algorand-internal#1179.
- Loading branch information
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
filename=$(basename "$0") | ||
scriptname="${filename%.*}" | ||
date "+${scriptname} start %Y%m%d_%H%M%S" | ||
|
||
set -e | ||
set -x | ||
set -o pipefail | ||
export SHELLOPTS | ||
|
||
WALLET=$1 | ||
|
||
gcmd="goal -w ${WALLET}" | ||
|
||
ACCOUNT=$(${gcmd} account list|awk '{ print $3 }') | ||
ASSET_NAME='Birlot : décollage vs. ࠶🦪' | ||
|
||
set +o pipefail | ||
# longer than 32-byte ASA URLs should fail | ||
${gcmd} asset create \ | ||
--creator "${ACCOUNT}" \ | ||
--name "${ASSET_NAME}" \ | ||
--unitname amisc \ | ||
--total 1000000000000 \ | ||
--asseturl "123456789012345678901234567890123" 2>&1 \ | ||
| grep "is too long (max 32 bytes)" | ||
set -o pipefail | ||
|
||
date "+${scriptname} finish %Y%m%d_%H%M%S" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters