From 7774c17575a9960684e1576a739bc34889ea8cc4 Mon Sep 17 00:00:00 2001 From: Colin Ogoo Date: Fri, 4 Mar 2022 22:15:05 +0000 Subject: [PATCH] docs: fix merchant integration code snippet fix error in validate transaction signature snippet. example code was fixed in this PR: https://github.com/solana-labs/solana-pay/pull/81 --- docs/src/core/MERCHANT_INTEGRATION.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/core/MERCHANT_INTEGRATION.md b/docs/src/core/MERCHANT_INTEGRATION.md index ed04f36d..14cab361 100644 --- a/docs/src/core/MERCHANT_INTEGRATION.md +++ b/docs/src/core/MERCHANT_INTEGRATION.md @@ -330,10 +330,9 @@ Once the `findTransactionSignature` function returns a signature, it confirms th * found matches the transaction that you expected. */ console.log('\n6. 🔗 Validate transaction \n'); -const amountInLamports = amount.times(LAMPORTS_PER_SOL).integerValue(BigNumber.ROUND_FLOOR); try { - await validateTransactionSignature(connection, signature, recipient, amountInLamports, undefined, reference); + await validateTransactionSignature(connection, signature, recipient, amount, undefined, reference); // Update payment status paymentStatus = 'validated';