Skip to content

Commit

Permalink
fix: result
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-feng committed Feb 4, 2025
1 parent 5f84b0f commit 004db5a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/example-web-app/components/RecordMessageButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ 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 })];
return [
signature,
{
value: { err: null },
context: {
slot: 0,
},
},
];
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

0 comments on commit 004db5a

Please sign in to comment.