Skip to content

Commit

Permalink
added toHex for BufferComposer (#436)
Browse files Browse the repository at this point in the history
added txId for CTransaction & CTransactionSegWit
added jellyfish-crypto into jellyfish-transaction
  • Loading branch information
fuxingloh authored Jul 1, 2021
1 parent b7497eb commit c409174
Show file tree
Hide file tree
Showing 7 changed files with 628 additions and 596 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ describe('ComposableBuffer deep implementation', () => {

expect(JSON.stringify(root.toObject())).toStrictEqual(JSON.stringify(data))
})

it('should encode toHex properly', () => {
const root = new CRoot(data)
expect(root.toHex()).toStrictEqual(hex)
})
})

describe('ComposableBuffer.empty', () => {
Expand Down
Loading

0 comments on commit c409174

Please sign in to comment.