1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

debug ethers on hardhat

This commit is contained in:
paulo-ocean 2024-09-09 10:46:26 +01:00
parent 2ce5a77e4c
commit 9ec89b6ab0

View File

@ -138,6 +138,8 @@ export async function calculateTemplateIndexV2(
const tokenTemplate = await factoryERC721.getTokenTemplate(i)
console.log('\n\n------------\ntemplateIndex:' + i)
console.log(tokenTemplate)
console.log('hardhatEthers', hardhatEthers)
console.log('ethers prop?:', hre.ethers)
const erc20Template = await hardhatEthers.ethers.getContractAt(
'ERC20Template',
tokenTemplate.templateAddress