Skip to content

Commit

Permalink
fix(ao-ar-io): add antAoClient to ftching in arns update
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 24, 2025
1 parent 0932fb2 commit 1cf6221
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@ant-design/icons": "5.4.0",
"@ar.io/sdk": "^3.3.0-alpha.11",
"@ar.io/sdk": "^3.3.0-alpha.15",
"@permaweb/aoconnect": "^0.0.59",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-select": "^2.1.4",
Expand Down
6 changes: 5 additions & 1 deletion src/state/contexts/ArNSState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
AoArNSNameData,
ArNSEventEmitter,
} from '@ar.io/sdk/web';
import { connect } from '@permaweb/aoconnect';
import { NETWORK_DEFAULTS } from '@src/utils/constants';
import {
Dispatch,
createContext,
Expand Down Expand Up @@ -36,6 +38,7 @@ export const initialArNSState: ArNSState = {
contract: defaultArIO,
timeoutMs: 1000 * 60 * 5,
strict: false,
antAoClient: connect(NETWORK_DEFAULTS.AO.ANT),
}),
domains: {},
ants: {},
Expand Down Expand Up @@ -71,9 +74,10 @@ export function ArNSStateProvider({
contract: arioContract,
timeoutMs: 1000 * 60 * 5,
strict: false,
antAoClient: antAoClient,
}),
});
}, [arioContract]);
}, [arioContract, antAoClient]);

useEffect(() => {
if (!walletAddress) return;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
plimit-lit "^3.0.1"
warp-contracts "1.4.45"

"@ar.io/sdk@^3.3.0-alpha.11":
version "3.3.0-alpha.11"
resolved "https://registry.yarnpkg.com/@ar.io/sdk/-/sdk-3.3.0-alpha.11.tgz#4ecb67a7f869d989b46b24d7922e119cfef9577e"
integrity sha512-hxMTRQtW0ZXIUjRDKrbbtdMD8KxcPhH46BRShc8KteVPkv6BUrWfvfIdx8Lu08QQmWnVpC2xFdq3FqexpC3N5g==
"@ar.io/sdk@^3.3.0-alpha.15":
version "3.3.0-alpha.15"
resolved "https://registry.yarnpkg.com/@ar.io/sdk/-/sdk-3.3.0-alpha.15.tgz#5b0a2a469056dfc2e025607d7d172b3b8ed0f326"
integrity sha512-UUEH3oZXhXDPmPP18RvNO816P9Uho95zgikI1Zj7mGi/EIzEBU//34Yb6vzMx9/x2bKUmYPbkgTiBOm0RTeKcw==
dependencies:
"@dha-team/arbundles" "^1.0.1"
"@permaweb/aoconnect" "^0.0.57"
Expand Down

0 comments on commit 1cf6221

Please sign in to comment.