Skip to content

Commit

Permalink
Fix useInitializeAcreSdk hook
Browse files Browse the repository at this point in the history
Remove unnecessary `ETHEREUM_NETWORK` param. The ethereum network is no
longer needed to create the Acre SDK.
  • Loading branch information
r-czajkowski committed May 15, 2024
1 parent ac5b0b8 commit b997cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dapp/src/hooks/sdk/useInitializeAcreSdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from "react"
import { BITCOIN_NETWORK, ETHEREUM_NETWORK } from "#/constants"
import { BITCOIN_NETWORK } from "#/constants"
import { logPromiseFailure } from "#/utils"
import { useAcreContext } from "#/acre-react/hooks"
import { LedgerLiveWalletApiBitcoinProvider } from "@acre-btc/sdk/dist/src/lib/bitcoin/providers"
Expand All @@ -17,7 +17,7 @@ export function useInitializeAcreSdk() {
bitcoinAccountId,
BITCOIN_NETWORK,
)
await init(bitcoinProvider, ETHEREUM_NETWORK)
await init(bitcoinProvider)
}
logPromiseFailure(initSDK(btcAccount.id))
}, [btcAccount?.id, init])
Expand Down

0 comments on commit b997cec

Please sign in to comment.