Skip to content

Commit

Permalink
chore: add ledger wallet to kit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Dec 17, 2024
1 parent 2a0f72f commit 1c15b05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dist

# website and dApp
node_modules
package-lock.json

# Production
build
Expand Down
3 changes: 2 additions & 1 deletion dapp/src/components/stellar-wallets-kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import {
FREIGHTER_ID,
StellarWalletsKit,
} from "@creit.tech/stellar-wallets-kit";
import { LedgerModule } from "@creit.tech/stellar-wallets-kit/modules/ledger.module";

const kit: StellarWalletsKit = new StellarWalletsKit({
modules: allowAllModules(),
modules: [...allowAllModules(), new LedgerModule()],
// @ts-ignore
network: import.meta.env.PUBLIC_SOROBAN_NETWORK_PASSPHRASE,
selectedWalletId: FREIGHTER_ID,
Expand Down
6 changes: 5 additions & 1 deletion dapp/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ interface Props {
const { title } = Astro.props;
---

<!doctype html>
<script>
import { Buffer } from "buffer";
global.Buffer = Buffer;
</script>

<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down

0 comments on commit 1c15b05

Please sign in to comment.