Skip to content

Commit

Permalink
fix: test response
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-feng committed Jan 26, 2025
1 parent 6ec3a42 commit ec5861d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions examples/example-web-app/components/RecordMessageButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,14 @@ export default function RecordMessageButton({ children, message }: Props) {
}

const signature = await sendTransaction(memoProgramTransaction, connection, { minContextSlot: context.slot});
enqueueSnackbar('Funding successful: ' + signature, { variant: 'success' });
return [signature, await connection.confirmTransaction({ blockhash, lastValidBlockHeight, signature })];
// enqueueSnackbar('Funding successful: ' + signature, { variant: 'success' });
// return [signature, await connection.confirmTransaction({ blockhash, lastValidBlockHeight, signature })];
return [signature, {
value: { err: null },
context: {
slot: 0
}
}];
},
[connection, publicKey, sendTransaction],
);
Expand Down Expand Up @@ -99,7 +105,7 @@ export default function RecordMessageButton({ children, message }: Props) {
'https://explorer.solana.com/tx/' +
signature +
'?cluster=' +
WalletAdapterNetwork.Devnet;
WalletAdapterNetwork.Mainnet;
return (
<Button color="inherit" href={explorerUrl} target="_blank">
View
Expand Down

0 comments on commit ec5861d

Please sign in to comment.