Skip to content

Commit

Permalink
Get code working
Browse files Browse the repository at this point in the history
  • Loading branch information
ejMina226 committed Jan 30, 2024
1 parent e6ad4ed commit fee1928
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/paymentGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { PrivateKey } from "o1js";
import Client from 'mina-signer';

export async function paymentGenerator(
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit fee1928

Please sign in to comment.