Skip to content

Fix regtest address conversion#2

Open
mainnet-pat wants to merge 1 commit into
simpleledger:masterfrom
mainnet-pat:master
Open

Fix regtest address conversion#2
mainnet-pat wants to merge 1 commit into
simpleledger:masterfrom
mainnet-pat:master

Conversation

@mainnet-pat

Copy link
Copy Markdown

Currently the conversion of regtest addresses resolves to testnet, e.g.:

bchaddr.toCashAddress("slpreg:qpttdv3qg2usm4nm7talhxhl05mlhms3ysg3x0302x")
>> "bchtest:qpttdv3qg2usm4nm7talhxhl05mlhms3ys0d2lessf"
bchaddr.toCashAddress("slpreg:qpttdv3qg2usm4nm7talhxhl05mlhms3ysg3x0302x")
>> "bchtest:qpttdv3qg2usm4nm7talhxhl05mlhms3ys0d2lessf"

This PR proposes the fix to allow proper resolution.
I've added the tests, but they do not fully follow the established scheme.

@SuperCipher

Copy link
Copy Markdown

Hi @mainnet-pat.
I have similar if not the same pull requests #1 here you can check it out.

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.

2 participants