From e08a411b7bef10a45f3b32463df4ea9d6b2b3667 Mon Sep 17 00:00:00 2001 From: kacper Date: Tue, 22 Aug 2023 12:50:33 +0200 Subject: [PATCH] Use company wallet for transfer requests --- src/components/SendTransferRequest.tsx | 2 +- src/pages/api/transaction.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SendTransferRequest.tsx b/src/components/SendTransferRequest.tsx index c327261..2b0369e 100644 --- a/src/components/SendTransferRequest.tsx +++ b/src/components/SendTransferRequest.tsx @@ -31,7 +31,7 @@ export const SendTransferRequest: FC = ({ reference }) const transferInstruction = SystemProgram.transfer({ fromPubkey: publicKey, - toPubkey: Keypair.generate().publicKey, + toPubkey: PublicKey("9SByUpbgcSNjw1SR6ScXcScziBQT48gRRkggFE1Wr1mG"), lamports: LAMPORTS_PER_SOL / 1000, }); diff --git a/src/pages/api/transaction.ts b/src/pages/api/transaction.ts index 1ad6400..e0ac6ab 100644 --- a/src/pages/api/transaction.ts +++ b/src/pages/api/transaction.ts @@ -50,7 +50,7 @@ async function postImpl( const transferInstruction = SystemProgram.transfer({ fromPubkey: account, - toPubkey: Keypair.generate().publicKey, + toPubkey: PublicKey("9SByUpbgcSNjw1SR6ScXcScziBQT48gRRkggFE1Wr1mG"), lamports: LAMPORTS_PER_SOL / 1000, });