File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import {
99 DisputeKitClassic ,
1010 ChainlinkRNG ,
1111} from "../typechain-types" ;
12- import request from "graphql-request" ;
1312import env from "./utils/env" ;
1413import loggerFactory from "./utils/logger" ;
1514import { toBigInt , BigNumberish , getNumber } from "ethers" ;
1615import hre = require( "hardhat" ) ;
1716
17+ let request : < T > ( url : string , query : string ) => Promise < T > ; // Workaround graphql-request ESM import
1818const { ethers } = hre ;
1919const MAX_DRAW_ITERATIONS = 30 ;
2020const MAX_EXECUTE_ITERATIONS = 20 ;
@@ -478,6 +478,8 @@ const sendHeartbeat = async () => {
478478} ;
479479
480480async function main ( ) {
481+ const graphqlRequest = await import ( "graphql-request" ) ; // Workaround graphql-request ESM import
482+ request = graphqlRequest . request ;
481483 const { core, sortition, disputeKitClassic } = await getContracts ( ) ;
482484
483485 const getBlockTime = async ( ) => {
You can’t perform that action at this time.
0 commit comments