near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 21 forks source link

TestnetWorker creates root account that has very limited balance #158

Closed ailisp closed 2 years ago

ailisp commented 2 years ago

In the attempt to make every operation explicit and no hidden magic, we don't automatic create temp accounts to fund root accounts. In the TestnetWorker, the top level account has only 10 NEAR. User would have to specify sub accounts balance to 1-5 NEAR, or manually call addFundsFromNetwork a couple of times to have balance sufficient for tests.

I can think of two approaches to simplify without make anything implicit:

ailisp commented 2 years ago

It's fixed by @volovyk-s . The behavior now is specify a testnet root account manually