iost.js icon indicating copy to clipboard operation
iost.js copied to clipboard

Fix the usage of constructing IOST instance in README

Open nujabes403 opened this issue 6 years ago • 1 comments

According to index.js, module.exports are defined like below:

module.exports = {
    IOST: IOST,
    RPC: RPC,
    HTTPProvider: HTTPProvider,
    KeyPair: KeyPair,
    Tx : Tx,
    Algorithm: Algorithm,
    Account: Account,
    TxHandler: TxHandler,
}

To instantiate IOST, you should do it with a statement new IOST.IOST({...}) instead new IOST({...}).

Currently, instantiating IOST is wrongly described in README.md usage.

It should be fixed.

nujabes403 avatar Dec 21 '18 18:12 nujabes403

Please take a look. @sswsdsn

nujabes403 avatar Dec 21 '18 18:12 nujabes403