Skip to content

Commit

Permalink
wallet-ext: use fullnode for objects
Browse files Browse the repository at this point in the history
  • Loading branch information
pchrysochoidis committed Jun 28, 2022
1 parent 9726e7d commit d396edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/src/ui/app/redux/slices/sui-objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export const fetchAllOwnedObjects = createAsyncThunk<
const allSuiObjects: SuiObject[] = [];
if (address) {
const allObjectRefs =
await api.instance.gateway.getObjectsOwnedByAddress(`${address}`);
await api.instance.fullNode.getObjectsOwnedByAddress(`${address}`);
const objectIDs = allObjectRefs.map((anObj) => anObj.objectId);
const allObjRes = await api.instance.gateway.getObjectBatch(objectIDs);
const allObjRes = await api.instance.fullNode.getObjectBatch(objectIDs);
for (const objRes of allObjRes) {
const suiObj = getObjectExistsResponse(objRes);
if (suiObj) {
Expand Down

0 comments on commit d396edd

Please sign in to comment.