Skip to content

SDK assumes networkID as tc if not specified.  #405

@cubismic

Description

@cubismic

Assuming tc as default networkID is not problem.

But in the first example code of codechain sdk document,
networkID is not specified while constructing SDK object.

This might cause confusion because sdk also assumes networkID as tc in the case below.

var sdk = new SDK({ server: "https://corgi-rpc.codechain.io" });

To set networkId to wc, we should specify it

var sdk = new SDK({ server: "https://corgi-rpc.codechain.io"
 networkId: "wc"});

So I think we should change document or change assuming logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions