clovyr/chia-example

Piggybank example failing

Closed this issue · 0 comments

In the piggybank quickstart the command piggybank = deploy_smart_coin("piggybank.clsp", 0) fails with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "piggybank_drivers.py", line 111, in deploy_smart_coin
    print(f"coin_id: {coin.get_hash().hex()}")
AttributeError: 'NoneType' object has no attribute 'get_hash'

Running the function with a value of 1 does succeed:

piggybank = deploy_smart_coin("piggybank.clsp", 1)