Missing definition of is_creator (line 10) of contract.py
Bytes("damage") should be Bytes("injure") on Line 40 of contract.py
Makefile references to $(ALGO_(DATA) and $(ALGO__DATA) (should be $(ALGO_DATA))
Makefiles also require tabs, not spaces (This may not be fixable in the article, depending on their CMS)
goal node start -d $(ALGO_PVTNET_DATA) is a useful command to add after the private node install. (I'm a complete AlgoN00b!)
creatorAddress and differentAddress needing some figuring out. goal account new was useful for creating the differentAddress.
It may be helpful to give commands to create and fund a second account:
goal account new
goal account list
goal clerk send -a 200000 -f $CREATOR_ACCOUNT -t $NEW_ACCOUNT
First, thank you immensely for the excellent tutorial on Algorand.org, as a web3 (EVM) game developer learning Algorand, it's educational and fun.
I wanted to give a heads up that the tutorial, Simple NPC game interactions using a stateful contract and atomic transfers, has a number of minor mistakes, which are fixed in this repo's code, but haven't been applied to the article yet.
is_creator
(line 10) ofcontract.py
Bytes("damage")
should beBytes("injure")
on Line 40 ofcontract.py
$(ALGO_(DATA)
and$(ALGO__DATA)
(should be $(ALGO_DATA))goal node start -d $(ALGO_PVTNET_DATA)
is a useful command to add after the private node install. (I'm a complete AlgoN00b!)creatorAddress
anddifferentAddress
needing some figuring out.goal account new
was useful for creating thedifferentAddress
. It may be helpful to give commands to create and fund a second account:I hope this helps! Thanks again!