Skip to content

Commit

Permalink
trying contract version
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Jan 12, 2024
1 parent 667e560 commit b1a11a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ERC1155Mappings/upgradeGateMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
UpgradePath,
} from "../../generated/schema";
import { ZoraCreator1155Impl } from "../../generated/templates/ZoraCreator1155Impl/ZoraCreator1155Impl";
import { Bytes, store } from "@graphprotocol/graph-ts";
import { Address, Bytes, store } from "@graphprotocol/graph-ts";

function getContractVersion(address: Bytes): ContractVersion {
const contractVersion = new ContractVersion(address);

const zoraCreator1155Impl = ZoraCreator1155Impl.bind(address);
const zoraCreator1155Impl = ZoraCreator1155Impl.bind(address as Address);

contractVersion.version = zoraCreator1155Impl.try_contractVersion().value;
contractVersion.name = zoraCreator1155Impl.try_name().value;
Expand Down

0 comments on commit b1a11a1

Please sign in to comment.