Skip to content

Commit a1bd198

Browse files
authored
Update stellar.ts
1 parent 43cc033 commit a1bd198

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/service/blockchains/stellar.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ export async function createPayment(
7171
) {
7272
paymentRealized="proceso"
7373
try {
74-
let sourceKeys = await StellarSdk.Keypair.fromSecret(payer.privKey);
75-
let sourceAcount = await server.loadAccount(payer.pubKey);
74+
const sourceKeys = await StellarSdk.Keypair.fromSecret(payer.privKey);
75+
const sourceAcount = await server.loadAccount(payer.pubKey);
7676

77-
var transaction = new StellarSdk.TransactionBuilder(sourceAcount, {
77+
const transaction = new StellarSdk.TransactionBuilder(sourceAcount, {
7878
fee: StellarSdk.BASE_FEE,
7979
networkPassphrase: network,
8080
});
@@ -86,9 +86,9 @@ export async function createPayment(
8686
asset: Asset.native(),
8787
}),
8888
);
89-
let operation2 = operation1.setTimeout(100);
89+
const operation2 = operation1.setTimeout(100);
9090

91-
let pruebaArmada = operation2.build();
91+
const pruebaArmada = operation2.build();
9292
console.log(pruebaArmada);
9393

9494
pruebaArmada.sign(sourceKeys);

0 commit comments

Comments
 (0)