scale-it/algo-builder

Runtime, optInAccNames problem w/ Asa definition

BubsLB opened this issue · 4 comments

Describe the bug

In runtime, I've to opt in a couple of accounts in ASA. I do that directly in Assets/asa.yaml with optInAccNames: ["alice", "bob"]. when I run the test, an error returns to me as below.

Schermata 2021-07-20 alle 15 31 37

Schermata 2021-07-20 alle 15 31 25

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Environment

  • OS: iOs 11.4
  • Node.js version: 14.17
  • algob version: 1.1.1

Do you declare alice account in your config?

NOTE: you can also leave that field empty in asa.yaml and set it when deploying ASA in your script or test (eg if you want to use an account which is not defined in algob.config.js). Here is an example: https://github.com/scale-it/algo-builder/blob/master/examples/asa/scripts/0-gold-asa.js#L31

NOTE: you can also leave that field empty in asa.yaml and set it when deploying ASA in your script or test (eg if you want to use an account which is not defined in algob.config.js). Here is an example: https://github.com/scale-it/algo-builder/blob/master/examples/asa/scripts/0-gold-asa.js#L31

Yes thanks, I solved in this way. I opened the Issue just to report it

NOTE: you can also leave that field empty in asa.yaml and set it when deploying ASA in your script or test (eg if you want to use an account which is not defined in algob.config.js). Here is an example: https://github.com/scale-it/algo-builder/blob/master/examples/asa/scripts/0-gold-asa.js#L31

Yes thanks, I solved in this way. I opened the Issue just to report it

thanks, seems we cannot pass name while creating accounts in runtime. Adding a fix for it