EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

asking for assist - encodeName undefined in browser #190

Closed gpmn closed 6 years ago

gpmn commented 6 years ago

asking for help! I build eosjs as instruction : npm run build_browser but my code got such error when call encodeName, I tried these: eos.format.encodeName format.encodeName encodeName how to use encodeName in browser versoin?

jcalfee commented 6 years ago

https://github.com/EOSIO/eosjs/blob/v14.1.1/dist/index.html#L4

Eos.modules.format.encodeName('alice')
jcalfee commented 6 years ago

Notice the E in Eos is capitol .. encodeName is static and does not need a configured instance of eos ..

gpmn commented 6 years ago

solved, Haha! Thank you!