[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the usage of constructing IOST instance in README #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nujabes403
Copy link
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
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.

None yet

1 participant