Skip to content

Commit

Permalink
Update AcreLedgerLiveBitcoinProvider
Browse files Browse the repository at this point in the history
Set `hwAppId` based on network: `Acre` for mainnet `Acre Test` for
testnet.
  • Loading branch information
r-czajkowski committed Nov 5, 2024
1 parent 98e7003 commit 0d137f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dapp/src/utils/orangekit/ledger-live/bitcoin-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class AcreLedgerLiveBitcoinProvider

readonly #options: AcreLedgerLiveBitcoinProviderOptions

readonly #hwAppId = "Acre"
readonly #hwAppId: string

readonly #derivationPath = "0/0"

Expand Down Expand Up @@ -110,6 +110,7 @@ export default class AcreLedgerLiveBitcoinProvider
this.#windowMessageTransport = windowMessageTransport
this.#walletApiClient = walletApiClient
this.#options = options
this.#hwAppId = network === BitcoinNetwork.Mainnet ? "Acre" : "Acre Test"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("AcreLedgerLiveBitcoinProvider", () => {
balance: 100,
spendableBalance: 80,
}
const hwAppId = "Acre"
const hwAppId = "Acre Test"

const withdrawalData = {
to: "0x0",
Expand Down

0 comments on commit 0d137f1

Please sign in to comment.