Skip to content

Commit

Permalink
chore: add better analytics for broadcast errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed May 15, 2024
1 parent 3562a2c commit 4573a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/query/stacks/bns/bns.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export async function fetchNamesForAddress({
export async function fetchNameOwner(client: StacksClient, name: string, isTestnet: boolean) {
const fetchFromApi = async () => {
const res = await client.namesApi.getNameInfo({ name });
//could try here? sending to BNS on ledger?
if (isUndefined(res.address)) return null;
if (!isString(res.address) || res.address.length === 0) return null;
return res.address;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ export function useCurrentAccountNativeSegwitAddressIndexZero() {
return useMemo(() => signer?.(0).payment.address, [signer]) as string;
}

// ?? maybe here fails?
/**
* @deprecated Use signer.address instead
*/
export function useNativeSegwitAccountIndexAddressIndexZero(accountIndex: number) {
const signer = useNativeSegwitSigner(accountIndex)?.(0);
// could it be this?
return signer?.payment.address as string;
}

Expand Down

0 comments on commit 4573a50

Please sign in to comment.