Skip to content

Commit

Permalink
fix(ant registry): custom cu url for ant registry
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 28, 2025
1 parent 20fd825 commit 0d3ba69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/state/actions/dispatchArIOInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default async function dispatchArIOInteraction({

const antRegistry = ANTRegistry.init({
signer,
processId: ANT_REGISTRY_ID,
process: new AOProcess({
processId: ANT_REGISTRY_ID,
ao,
}),
});
await antRegistry
.register({
Expand Down
12 changes: 11 additions & 1 deletion src/state/actions/dispatchArNSUpdate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {
ANT,
ANTRegistry,
ANT_REGISTRY_ID,
AOProcess,
AoANTHandler,
AoANTState,
Expand Down Expand Up @@ -144,7 +146,15 @@ export function dispatchArNSUpdate({
});

emitter
.fetchProcessesOwnedByWallet({ address: walletAddress.toString() })
.fetchProcessesOwnedByWallet({
address: walletAddress.toString(),
antRegistry: ANTRegistry.init({
process: new AOProcess({
processId: ANT_REGISTRY_ID,
ao,
}),
}),
})
.catch((e) =>
errorHandler('Error getting assets owned by wallet: ' + e.message),
);
Expand Down

0 comments on commit 0d3ba69

Please sign in to comment.