From a1bd1981bffc1e7bf9e31839087d6dc785d6976d Mon Sep 17 00:00:00 2001 From: julihidalgo <102550772+julihidalgo@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:15:09 -0300 Subject: [PATCH] Update stellar.ts --- src/service/blockchains/stellar.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/service/blockchains/stellar.ts b/src/service/blockchains/stellar.ts index e919f12..77c3134 100644 --- a/src/service/blockchains/stellar.ts +++ b/src/service/blockchains/stellar.ts @@ -71,10 +71,10 @@ export async function createPayment( ) { paymentRealized="proceso" try { - let sourceKeys = await StellarSdk.Keypair.fromSecret(payer.privKey); - let sourceAcount = await server.loadAccount(payer.pubKey); + const sourceKeys = await StellarSdk.Keypair.fromSecret(payer.privKey); + const sourceAcount = await server.loadAccount(payer.pubKey); - var transaction = new StellarSdk.TransactionBuilder(sourceAcount, { + const transaction = new StellarSdk.TransactionBuilder(sourceAcount, { fee: StellarSdk.BASE_FEE, networkPassphrase: network, }); @@ -86,9 +86,9 @@ export async function createPayment( asset: Asset.native(), }), ); - let operation2 = operation1.setTimeout(100); + const operation2 = operation1.setTimeout(100); - let pruebaArmada = operation2.build(); + const pruebaArmada = operation2.build(); console.log(pruebaArmada); pruebaArmada.sign(sourceKeys);