为了让我的机器工作,我一直在绞尽脑汁。经过一些艰苦的努力,我成功地将我的npm升级到8.7.0,我的nodejs升级到16.14.2甚至,我使用的是windows 7,这并不理想,但我真的不想升级到win10,除非没有其他方式编译/部署。Internal exception in StandardCompiler::compile: C:\Users\circleci\project\libsolidity\ast\AST.cpp(183): Throw in function class std::vector&
我创建了一个使用类型记录的硬帽项目。当我试图从intellij运行测试时,我得到了:test/index.ts(2,10): error TS2305: Module '"hardhat"' has no exported member 'ethers'.📷📷
另外,对于javascript项目,一切都很好(我可以使用intellij对其进行调试,没有任何问题),这个问题只发生在
我正在测试一个智能合同,在其中一个函数中有一个require语句。await expect(token.transfer(user.address, ethers.utils.parseEther("10")).to.be.reverted;Property 'reverted' does not exist on type 'Assertion'.ts(2339)非常感谢。