Skip to content

Fix the usage of constructing IOST instance in README#2

Open
nujabes403 wants to merge 1 commit into
iost-official:masterfrom
nujabes403:fix-usage-example
Open

Fix the usage of constructing IOST instance in README#2
nujabes403 wants to merge 1 commit into
iost-official:masterfrom
nujabes403:fix-usage-example

Conversation

@nujabes403

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Please take a look. @sswsdsn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant