in my hardhat, contracts have their owners from rinkeby, so in test I have to provide private key and create Signer because I wanna grant roles. Do anybody know how to workaround?
Hardhat impersonate
So why when I try to call contract method in test from first Signer it gets me an error Error: VM Exception while processing transaction: reverted with reason string 'AccessControl: account 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 is missing role 0x0000000000000000000000000000000000000000000000000000000000000000' 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 - It's a [owner] = await ethers.getSigners();
Maybe you didn't setup default admin role?
But how if my hardhat "owner" Signer is not an admin
Обсуждают сегодня