Skip to content

Commit

Permalink
fix(sdk): export addresses (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanosync authored Nov 14, 2023
1 parent cb7012e commit 17d6e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sdk/src/addresses/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function getAddressFormatForRegTest(address: string): AddressFormat {
throw new OrditSDKError("Invalid address");
}
}

export function getAddressFormat(
address: string,
network: Network,
Expand Down Expand Up @@ -107,3 +108,5 @@ export function getAddressesFromPublicKey(

return [getAddressFromBip32PublicKey(bip32PublicKey, network, type)];
}

export * from "./types";
1 change: 1 addition & 0 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { initEccLib } from "bitcoinjs-lib";
// This function will manage its own instance.
initEccLib(ecc);

export * from "./addresses";
export * from "./modules";
export * from "./ordinals/index";
export * from "./transactions";

0 comments on commit 17d6e7f

Please sign in to comment.