diff --git a/interaction/devnet.snippets.sh b/interaction/devnet.snippets.sh index 84b6959..574e042 100644 --- a/interaction/devnet.snippets.sh +++ b/interaction/devnet.snippets.sh @@ -107,6 +107,22 @@ setTreasuryAddress(){ --send || return } + +setMaxDefaultQuantity(){ + + # $1 = max default quantity + + mxpy --verbose contract call ${ADDRESS} \ + --recall-nonce \ + --pem=${WALLET} \ + --gas-limit=6000000 \ + --function "setMaxDefaultQuantity" \ + --arguments $1 \ + --proxy ${PROXY} \ + --chain ${CHAIN_ID} \ + --send || return +} + setAdministrator(){ # $1 = administrator address @@ -273,7 +289,8 @@ addOffer(){ # $4 = payment token identifier # $5 = payment token nonce # $6 = payment token amount - # $7 = quantity (optional) + # $7 = quantity + # $8 = max quantity per address token_identifier="0x$(echo -n ${1} | xxd -p -u | tr -d '\n')" @@ -285,7 +302,7 @@ addOffer(){ --pem=${SELLER} \ --gas-limit=10000000 \ --function "ESDTNFTTransfer" \ - --arguments $token_identifier $2 $3 ${ADDRESS} $method $payment_token_identifier $5 $6 $7 \ + --arguments $token_identifier $2 $3 ${ADDRESS} $method $payment_token_identifier $5 $6 $7 $8 \ --proxy ${PROXY} \ --chain ${CHAIN_ID} \ --send || return