-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Version of Hardhat
3.0.7
What happened?
Not critically, I just need to run it several times and it works OK, but I write ".to.be.revertedWith("Address already allowed");" in this test, so usually it goes all right.
user:~/Projects/[ProjectName]/apps/contracts$ npx hardhat test
...
1) Test that an address may be added to an allowedAddresses of a [Struct] only once
Unhandled promise rejection:
Error: VM Exception while processing transaction: reverted with reason string 'Address already allowed'
at [ContractName].[FunctionName] (contracts/[FileName].sol:266)
at [ContractName].[FunctionName] (contracts/[FileName].sol:278)
at EdrProvider.#handleEdrResponse (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts:338:17)
at EdrProvider.#handleRequest (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts:408:35)
at async next (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/hardhat/src/internal/core/hook-manager.ts:121:13)
at async next (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/hardhat/src/internal/core/hook-manager.ts:120:13)
at async EdrProvider.request (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts:252:25)
at async HardhatEthersSigner.sendTransaction (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/@nomicfoundation/hardhat-ethers/src/internal/signers/signers.ts:183:18)
at async send (/home/user/Projects/[ProjectName]/apps/contracts/node_modules/ethers/src.ts/contract/contract.ts:313:20)
at async Proxy.[MyProjectFunctionName] (/home/user/Projects/CashVote/NemizoriCashVote/apps/contracts/node_modules/ethers/src.ts/contract/contract.ts:352:16)
Minimal reproduction steps
I don't know, I didn't mention it with other tests yet.
Search terms
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status