Skip to content

Commit

Permalink
fix: method call signature
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Jul 11, 2020
1 parent 553b129 commit 538a8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const deploymentBlock = Number(process.env.FACTORY_BLOCK_NUM) || 0
console.info(`Item of ID ${itemID} of TCR at ${tcrAddress}`)
console.info('Checking if it is resolved...'.cyan)
const tcr = new ethers.Contract(tcrAddress, _GeneralizedTCR.abi, signer)
const { numberOfRequests } = await tcr.getItem(itemID)
const { numberOfRequests } = await tcr.getItemInfo(itemID)
const requestID = numberOfRequests.toNumber() - 1
const { resolved } = await tcr.getRequest(itemID, requestID)
console.info(`Resolved: ${resolved}`)
Expand Down

0 comments on commit 538a8bb

Please sign in to comment.