From fee19286dd1f30808f22ddcde5d25dc659068626 Mon Sep 17 00:00:00 2001 From: ejMina226 <118474890+ejMina226@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:59:06 +0000 Subject: [PATCH] Get code working --- src/paymentGenerator.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/paymentGenerator.ts b/src/paymentGenerator.ts index bb1c250..4b416f4 100644 --- a/src/paymentGenerator.ts +++ b/src/paymentGenerator.ts @@ -1,4 +1,3 @@ -import { PrivateKey } from "o1js"; import Client from 'mina-signer'; export async function paymentGenerator( @@ -39,8 +38,7 @@ export async function paymentGenerator( deployerAccount ); const query_pay = `mutation MyMutation { - sendPayment(input: {fee: 2000000000, nonce: ${inferred_nonce + i}, amount: "1500000", to: "${receiver}", from: "${sender_public}"}, signature: {rawSignature: "${signedPayment.signature}"}) { - }` + sendPayment(input: {fee: 2000000000, amount: "1500000", to: "${receiver}", from: "${sender_public}", nonce: "${inferred_nonce + i}"}, signature: {field: "${signedPayment.signature.field}", scalar: "${signedPayment.signature.scalar}"})}` await fetch(network, { method: "POST", headers: {