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(core): parse scripts from addresses on generating transactions #488

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

Keith-CY
Copy link
Member

This commit enables parsing scripts from addresses on generating a transaction, instead of using the
default secp256k1/blake160 script.

But the lock script in change output is fixed to the default secp256k1/blake160 script.

FWIW, the internal interface generateRawTransaction in core/generateRawTransaction is changed to accept scripts instead of public key hash.

This commit enables parsing scripts from addresses on generating a transaction, instead of using the
default secp256k1/blake160 script.

But the lock script in change output is fixed to the default secp256k1/blake160 script.

FWIW, the internal interface `generateRawTransaction` in core/generateRawTransaction is changed to accept scripts instead of public key hash.
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2020

Codecov Report

Merging #488 into develop will increase coverage by 0.44%.
The diff coverage is 95.65%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #488      +/-   ##
===========================================
+ Coverage    95.40%   95.84%   +0.44%     
===========================================
  Files           48       48              
  Lines         1522     1516       -6     
  Branches       292      292              
===========================================
+ Hits          1452     1453       +1     
+ Misses          70       63       -7     
Impacted Files Coverage Δ
packages/ckb-sdk-core/src/index.ts 71.25% <80.00%> (+3.37%) ⬆️
...ackages/ckb-sdk-core/src/generateRawTransaction.ts 98.63% <100.00%> (-0.02%) ⬇️

@Keith-CY Keith-CY marked this pull request as ready for review September 14, 2020 07:21
@Keith-CY Keith-CY merged commit 9536f08 into develop Sep 17, 2020
@Keith-CY Keith-CY deleted the parse-address-in-generate-tx branch September 17, 2020 02:22
@Keith-CY Keith-CY mentioned this pull request Sep 17, 2020
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

4 participants