Skip to content

Commit

Permalink
fix: add snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-feng committed Jan 26, 2025
1 parent a6abe38 commit 6ec3a42
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ 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 })];
},
[connection, publicKey, sendTransaction],
Expand Down

0 comments on commit 6ec3a42

Please sign in to comment.