Skip to content

Commit

Permalink
fix: stellarsdk import method
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Sep 18, 2024
1 parent e68369c commit 5ddcd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dapp/src/service/PaymentService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { kit, loadedPublicKey } from "../components/stellar-wallets-kit";
import StellarSdk from "@stellar/stellar-sdk";
import * as StellarSdk from "@stellar/stellar-sdk";

async function sendXLM(donateAmount: string, projectAddress: string, tipAmount: string): Promise<boolean> {
const senderPublicKey = loadedPublicKey();
Expand All @@ -14,7 +14,7 @@ async function sendXLM(donateAmount: string, projectAddress: string, tipAmount:

try {
// Fetch the sender's account details from the Stellar network
const server = new StellarSdk.Server(rpcUrl ?? "https://soroban-testnet.stellar.org:443");
const server = new StellarSdk.Horizon.Server(rpcUrl ?? "https://soroban-testnet.stellar.org:443");
const account = await server.loadAccount(senderPublicKey);

// Create the transaction
Expand Down

0 comments on commit 5ddcd80

Please sign in to comment.