Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Apply modification of decodeTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
jimni1222 committed Sep 23, 2019
1 parent 308dfc1 commit 0789b13
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/packages/caver.klay.accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,13 @@ describe('caver.klay.accounts.signTransaction', () => {
expect(result.signatures.length).to.equals(2)

const decoded = caver.klay.decodeTransaction(result.rawTransaction)
expect(decoded.signature.length).to.equals(2)
expect(decoded.signature[0][0]).to.equals(result.signatures[0][0])
expect(decoded.signature[0][1]).to.equals(result.signatures[0][1])
expect(decoded.signature[0][2]).to.equals(result.signatures[0][2])
expect(decoded.signature[1][0]).to.equals(result.signatures[1][0])
expect(decoded.signature[1][1]).to.equals(result.signatures[1][1])
expect(decoded.signature[1][2]).to.equals(result.signatures[1][2])
expect(decoded.signatures.length).to.equals(2)
expect(decoded.signatures[0][0]).to.equals(result.signatures[0][0])
expect(decoded.signatures[0][1]).to.equals(result.signatures[0][1])
expect(decoded.signatures[0][2]).to.equals(result.signatures[0][2])
expect(decoded.signatures[1][0]).to.equals(result.signatures[1][0])
expect(decoded.signatures[1][1]).to.equals(result.signatures[1][1])
expect(decoded.signatures[1][2]).to.equals(result.signatures[1][2])
})
})

Expand All @@ -401,13 +401,13 @@ describe('caver.klay.accounts.signTransaction', () => {
expect(Array.isArray(feePayerSigned.feePayerSignatures)).to.be.true

const decoded = caver.klay.decodeTransaction(feePayerSigned.rawTransaction)
expect(decoded.signature.length).to.equals(1)
expect(decoded.signature[0][0]).to.equals(senderSigned.signatures[0][0])
expect(decoded.signature[0][1]).to.equals(senderSigned.signatures[0][1])
expect(decoded.signature[0][2]).to.equals(senderSigned.signatures[0][2])
expect(decoded.feePayerSignature[0][0]).to.equals(feePayerSigned.feePayerSignatures[0][0])
expect(decoded.feePayerSignature[0][1]).to.equals(feePayerSigned.feePayerSignatures[0][1])
expect(decoded.feePayerSignature[0][2]).to.equals(feePayerSigned.feePayerSignatures[0][2])
expect(decoded.signatures.length).to.equals(1)
expect(decoded.signatures[0][0]).to.equals(senderSigned.signatures[0][0])
expect(decoded.signatures[0][1]).to.equals(senderSigned.signatures[0][1])
expect(decoded.signatures[0][2]).to.equals(senderSigned.signatures[0][2])
expect(decoded.feePayerSignatures[0][0]).to.equals(feePayerSigned.feePayerSignatures[0][0])
expect(decoded.feePayerSignatures[0][1]).to.equals(feePayerSigned.feePayerSignatures[0][1])
expect(decoded.feePayerSignatures[0][2]).to.equals(feePayerSigned.feePayerSignatures[0][2])
})
})

Expand Down

0 comments on commit 0789b13

Please sign in to comment.