Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Issue with bitcore.Address and legacy livenet address #5

Description

@kdar

I get the error Address has mismatched network type.
Here is the sample code:

var bitcore = require('bitcore-lib-cash');

// This will fail. Livenet legacy address:
new bitcore.Address("161p4i14KBcTB8q368q4NeUr61nFJcWUDo");
// This will succeed. Same livenet new address:
new bitcore.Address("bitcoincash:qqm0l6ncpckl6ksrt4gja6rngp2x5kmcavkkwzfpfs");
// This will succeed. A testnet legacy address:
new bitcore.Address("mxQLmrBQsj9trMGg5kTwVbmeGetMA6gzhb");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions