Skip to content

Commit a884c08

Browse files
committed
fix: comment out imports for fakegotchis and realm
- they don't exist yet on base sepolia
1 parent 82fbb05 commit a884c08

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/utils/helpers/aavegotchi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export function createOrUpdateWearablesConfig(
708708
let ownerAddress = Address.fromString(owner.toHexString());
709709
let gotchi = getOrCreateAavegotchi(tokenId.toString(), event)!;
710710
let user = getOrCreateUser(ownerAddress.toHexString())!;
711-
let id = `${user.id}-${tokenId}-${wearablesConfigId}`
711+
let id = `${user.id}-${tokenId}-${wearablesConfigId}`;
712712

713713
let response = contract.try_getWearablesConfig(
714714
ownerAddress,

src/utils/helpers/fakegotchis.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { getOrCreateUser } from "./aavegotchi";
88
import { constants } from "@amxx/graphprotocol-utils";
99
import { BigInt } from "@graphprotocol/graph-ts";
10-
import { IERC721 } from "../../../generated/FAKEGotchisNFTDiamond/IERC721";
10+
// import { IERC721 } from "../../../generated/FAKEGotchisNFTDiamond/IERC721";
1111

1212
export function fetchFakeGotchiNFTToken(
1313
contract: Address,
@@ -25,7 +25,9 @@ export function fetchFakeGotchiNFTToken(
2525
token.identifier = identifier;
2626
token.approval = getOrCreateUser(constants.ADDRESS_ZERO.toHex()).id;
2727

28-
let erc721 = IERC721.bind(Address.fromBytes(contract));
28+
let erc721 = /* IERC721.bind(Address.fromBytes(contract)); */ undefined;
29+
if (!erc721) return;
30+
2931
let try_tokenURI = erc721.try_tokenURI(identifier);
3032
token.uri = try_tokenURI.reverted ? "" : try_tokenURI.value;
3133
}

src/utils/helpers/realm.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Bytes } from "@graphprotocol/graph-ts";
55
import { Parcel } from "../../../generated/schema";
66
import { BIGINT_ZERO } from "../constants";
77
import { log } from "@graphprotocol/graph-ts";
8-
import { RealmDiamond } from "../../../generated/RealmDiamond/RealmDiamond";
8+
// import { RealmDiamond } from "../../../generated/RealmDiamond/RealmDiamond";
99
import { getOrCreateUser } from "./aavegotchi";
1010
import { BigInt } from "@graphprotocol/graph-ts";
1111

@@ -30,7 +30,9 @@ export function getOrCreateParcel(
3030

3131
log.debug("token address: {}", [tokenAddress.toHexString()]);
3232

33-
let contract = RealmDiamond.bind(tokenAddress);
33+
let contract = /* RealmDiamond.bind(tokenAddress); */ undefined;
34+
if (!contract) return;
35+
3436
let parcelInfo = contract.try_getParcelInfo(tokenId);
3537

3638
if (parcelInfo.reverted) {

0 commit comments

Comments
 (0)