From bf5fb19b0a39eff880725ee569c75f490ccbeb23 Mon Sep 17 00:00:00 2001 From: DhananjayPurohit Date: Fri, 16 Aug 2024 13:47:53 +0530 Subject: [PATCH] debug: invoice verification --- clients/tests/web/test/tb04-simple-lightning-latch.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/tests/web/test/tb04-simple-lightning-latch.test.js b/clients/tests/web/test/tb04-simple-lightning-latch.test.js index 3b0ce3c6..744815b0 100644 --- a/clients/tests/web/test/tb04-simple-lightning-latch.test.js +++ b/clients/tests/web/test/tb04-simple-lightning-latch.test.js @@ -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 { @@ -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);