forked from mito-systems/sol-mem-gen
Update comment
This commit is contained in:
parent
5523939ff0
commit
5fd10ae15f
@ -56,9 +56,9 @@ const Page: React.FC = (): React.ReactElement => {
|
|||||||
connected: false,
|
connected: false,
|
||||||
publicKey: null,
|
publicKey: null,
|
||||||
type: null
|
type: null
|
||||||
});
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
const handleFluxGeneration = (modelId: string, cost: BN) => {
|
const handleFluxGeneration = (modelId: string, cost: BN) => {
|
||||||
return async (prompt: string): Promise<FluxGenerationResult> => {
|
return async (prompt: string): Promise<FluxGenerationResult> => {
|
||||||
|
@ -161,7 +161,7 @@ export async function processMTMPayment(
|
|||||||
transaction.feePayer = senderPublicKey
|
transaction.feePayer = senderPublicKey
|
||||||
|
|
||||||
console.log('Sending transaction...')
|
console.log('Sending transaction...')
|
||||||
const { signature } = await wallet.signAndSendTransaction(transaction);
|
const { signature } = await wallet.signAndSendTransaction(transaction)
|
||||||
console.log('Transaction sent:', signature)
|
console.log('Transaction sent:', signature)
|
||||||
|
|
||||||
const confirmation = await connection.confirmTransaction({
|
const confirmation = await connection.confirmTransaction({
|
||||||
|
@ -88,7 +88,7 @@ export async function verifyPayment(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
console.log('Transaction amount is not within the expected range.');
|
console.log('Transaction amount is not within the expected range.');
|
||||||
// TODO: Handle spillage being greater than 10%
|
// TODO: Handle slippage being greater than 10%
|
||||||
return false;
|
return false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Verification error:', error);
|
console.error('Verification error:', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user