Skip to content

Commit

Permalink
Update stellar.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
julihidalgo authored Dec 13, 2024
1 parent 43cc033 commit a1bd198
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/service/blockchains/stellar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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);
Expand Down

0 comments on commit a1bd198

Please sign in to comment.