Skip to content

Commit

Permalink
bump(deps): update dependency @ordzaar/ordit-sdk to v1.2.0 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanosync authored Jan 2, 2024
1 parent cf0408e commit 3e7fb85
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/ord-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"dependencies": {
"@headlessui/react": "^1.7.17",
"@ordzaar/ordit-sdk": "1.1.0",
"@ordzaar/ordit-sdk": "1.2.0",
"bitcoinjs-lib": "6.1.5",
"boring-avatars": "^1.10.1"
},
Expand All @@ -60,7 +60,7 @@
]
},
"peerDependencies": {
"@ordzaar/ordit-sdk": "1.1.0",
"@ordzaar/ordit-sdk": "1.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
6 changes: 5 additions & 1 deletion packages/ord-connect/src/hooks/useBalance.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useCallback, useState } from "react";
import {
ADDRESS_FORMAT_TO_TYPE,
AddressType,
getAddressesFromPublicKey,
JsonRpcDatasource,
} from "@ordzaar/ordit-sdk";
Expand All @@ -22,7 +23,10 @@ export function useBalance() {
const { address } = getAddressesFromPublicKey(
publicKey.payments,
network,
ADDRESS_FORMAT_TO_TYPE[format.payments],
ADDRESS_FORMAT_TO_TYPE[format.payments] as Exclude<
AddressType,
"p2wsh"
>,
)[0];

const datasource = new JsonRpcDatasource({ network });
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e7fb85

Please sign in to comment.