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

feat: supported ckb2021 address conversion #100

Merged
merged 2 commits into from
Mar 31, 2022
Merged

feat: supported ckb2021 address conversion #100

merged 2 commits into from
Mar 31, 2022

Conversation

homura
Copy link
Collaborator

@homura homura commented Mar 31, 2022

This PR supported conversion between the CKB2021 address and script.

// Script => Address(CKB2019)
provider.parseToAddress(script)
provider.parseToAddress(script, { version: "CKB2019" })

// Script => Address(CKB2021)
provider.parseToAddress(script, { version: "CKB2021" })

// Address(CKB2019|CKB2021) => Script
provider.parseToScript('...')

@homura homura merged commit 9653c49 into develop Mar 31, 2022
@homura homura deleted the ckb2021-address branch March 31, 2022 05:29
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