Closed wethinkagile closed 6 years ago
Thanks for being patient.. I was on another branch for eosjs dawn3..
having a look today.. I'm thinking for CORS reasons I can just direct the testnet to this node: http://t1readonly.eos.io
eosjs@6.1.9
Perhaps these should be consolidated into a singular constructor now to prepare for the multi chains that will be launched in June. Default to localhost with the ability to specify httpEndpoint as per usual.
The thinking is that there will be Testnet, or Staging, and Mainnet where there are different data-structures behind it. httpEndpoint is accepted in every case. Maybe the constructors should be named by version (dawn2, dawn3, etc) instead of environment.
I use
this.eos = Eos.Testnet();
as per README, but it tries to connect to localhost.Or do I have to run eosc and eos_walletd locally and point that one against testnet1?
This works however:
Would be great to clarify this and a bit more context (in the README?) even if trivial problem.