-
Notifications
You must be signed in to change notification settings - Fork 36
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
txn-builder
: utxos-to-account
#245
Conversation
packages/jellyfish-transaction-builder/src/txn/txn_builder_account.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-transaction-builder/src/txn/txn_builder_account.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-transaction-builder/src/txn/txn_builder_account.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
Codecov Report
@@ Coverage Diff @@
## main #245 +/- ##
==========================================
+ Coverage 96.37% 96.41% +0.03%
==========================================
Files 82 83 +1
Lines 2153 2177 +24
Branches 275 280 +5
==========================================
+ Hits 2075 2099 +24
Misses 78 78
Continue to review full report at Codecov.
|
Deploy Preview for jellyfish-defi ready! Built with commit 1646ac4 |
packages/jellyfish-transaction-builder/src/txn/txn_builder_account.ts
Outdated
Show resolved
Hide resolved
...ges/jellyfish-transaction-builder/__tests__/txn/txn_builder_account_utxos_to_account.test.ts
Show resolved
Hide resolved
Code Climate has analyzed commit f283f89 and detected 0 issues on this pull request. View more on Code Climate. |
@@ -76,6 +76,6 @@ export async function findOut (outs: TxOut[], pair: EllipticPair): Promise<TxOut | |||
const address = Bech32.fromPubKey(pubKey, 'bcrt') | |||
|
|||
return outs.filter(value => { | |||
return value.scriptPubKey.addresses.includes(address) | |||
return value.scriptPubKey.addresses?.includes(address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To return only Txout when Vout has non utxos output.
txn-builder
: utxos-to-account
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
FE dev friendly DfTx builder (utxos to account)
Which issue(s) does this PR fixes?:
Fixes part of #244
Additional comments?: