File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 77import { getOrCreateUser } from "./aavegotchi" ;
88import { constants } from "@amxx/graphprotocol-utils" ;
99import { BigInt } from "@graphprotocol/graph-ts" ;
10- import { IERC721 } from "../../../generated/FAKEGotchisNFTDiamond/IERC721" ;
10+ // import { IERC721 } from "../../../generated/FAKEGotchisNFTDiamond/IERC721";
1111
1212export 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 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Bytes } from "@graphprotocol/graph-ts";
55import { Parcel } from "../../../generated/schema" ;
66import { BIGINT_ZERO } from "../constants" ;
77import { log } from "@graphprotocol/graph-ts" ;
8- import { RealmDiamond } from "../../../generated/RealmDiamond/RealmDiamond" ;
8+ // import { RealmDiamond } from "../../../generated/RealmDiamond/RealmDiamond";
99import { getOrCreateUser } from "./aavegotchi" ;
1010import { 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 ) {
You can’t perform that action at this time.
0 commit comments