Skip to content

Commit

Permalink
Merge pull request #655 from ar-io/change-ant-registry-cu
Browse files Browse the repository at this point in the history
fix(ant registry): custom cu url for ant registry
  • Loading branch information
atticusofsparta authored Jan 28, 2025
2 parents 20fd825 + 0d3ba69 commit 81f2d37
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 81f2d37

Please sign in to comment.