Skip to content

Commit

Permalink
Update testnet.snippets.sh v2
Browse files Browse the repository at this point in the history
Arguement of mxpy contract deploy "--project" might be deprecated and it's not working with the current version of mxpy installed. Substituted with "--bytecode" instead, which works.
  • Loading branch information
ezra4 authored Dec 12, 2023
1 parent 490d371 commit 28ea087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/adder/interaction/testnet.snippets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEPLOY_TRANSACTION=$(mxpy data load --key=deployTransaction-testnet)
PROXY=https://testnet-api.multiversx.com

deploy() {
mxpy contract deploy --project=${PROJECT} --recall-nonce --pem=${ALICE} --gas-limit=50000000 --arguments 0 --send --outfile="deploy-testnet.interaction.json" --proxy=${PROXY} --chain=T || return
mxpy contract deploy --bytecode=${PROJECT} --recall-nonce --pem=${ALICE} --gas-limit=50000000 --arguments 0 --send --outfile="deploy-testnet.interaction.json" --proxy=${PROXY} --chain=T || return

TRANSACTION=$(mxpy data parse --file="deploy-testnet.interaction.json" --expression="data['emittedTransactionHash']")
ADDRESS=$(mxpy data parse --file="deploy-testnet.interaction.json" --expression="data['contractAddress']")
Expand Down

0 comments on commit 28ea087

Please sign in to comment.