Skip to content

Commit

Permalink
debug: invoice verification
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 16, 2024
1 parent 8ccf218 commit bf5fb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/tests/web/test/tb04-simple-lightning-latch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ describe('TB04 - Receiver tries to transfer invoice amount to another invoice be

expect(hashPreImage).toEqual(paymentHash.hash);

const paymentHashSecond = "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"
const paymentHashSecond = "4c616c5c4b2c2342c832e50a1584d8c550fe238e08e7be7c9af636ecef9136f2"
const invoiceSecond = await generateInvoice(paymentHashSecond, amount);

try {
Expand Down Expand Up @@ -696,7 +696,7 @@ describe('Coin receiver creates a non hold invoice, and sends to sender (i.e. an

const paymentHash = await mercuryweblib.paymentHash(clientConfig, wallet1.name, statechainId);

const paymentHashSecond = "1f1e1d1c1b1a19181716151413121110100f0e0d0c0b0a09080706050403020100"
const paymentHashSecond = "b1f55a2f2eabb08ed9d6e15a053a6ac84d04d1c017de5a42caaec98b8d2ff738"
const invoiceSecond = await generateInvoice(paymentHashSecond, amount);

const isInvoiceValid = await mercuryweblib.verifyInvoice(clientConfig, paymentHash.batchId, invoiceSecond.payment_request);
Expand Down

0 comments on commit bf5fb19

Please sign in to comment.