Ethersproject is not updated to work with Openzeppelin-contracts #2455
Unanswered
RudraveerMandal
asked this question in
Q&A
Replies: 1 comment
-
This means you are calling a method that is expecting 2 arguments, but you are calling it with one. Ethers does not include any ABI (which is where the error is coming from); the ABI you are using disagrees with your calling of it. You should also double-check that your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I am using the latest version of openzeppelin-contracts for my project but it also uses ethersproject but ethersproject hasnt yet updated their package to work with the updated openzeppelin-contracts. I cant downgrade openzeppelin-contracts to match with ethersproject bc it will mess up all of my project. If I use the version of openzeppelin-contracts ethersproject gives, it won't support solidity 0.8.0. What do I do?
This happens when I use the updated openzeppelin-contracts with ethersproject:
Error: missing argument: in Contract constructor (count=0, expectedCount=2, code=MISSING_ARGUMENT, version=contracts/5.5.0) at Logger.makeError (D:\Programming\PogTrader\node_modules\@ethersproject\logger\src.ts\index.ts:225:28) at Logger.throwError (D:\Programming\PogTrader\node_modules\@ethersproject\logger\src.ts\index.ts:237:20) at Logger.checkArgumentCount (D:\Programming\PogTrader\node_modules\@ethersproject\logger\src.ts\index.ts:296:18) at ContractFactory.<anonymous> (D:\Programming\PogTrader\node_modules\@ethersproject\contracts\src.ts\index.ts:1227:16) at step (D:\Programming\PogTrader\node_modules\@ethersproject\contracts\lib\index.js:48:23) at Object.next (D:\Programming\PogTrader\node_modules\@ethersproject\contracts\lib\index.js:29:53) at D:\Programming\PogTrader\node_modules\@ethersproject\contracts\lib\index.js:23:71 at new Promise (<anonymous>) at __awaiter (D:\Programming\PogTrader\node_modules\@ethersproject\contracts\lib\index.js:19:12) at ContractFactory.deploy (D:\Programming\PogTrader\node_modules\@ethersproject\contracts\lib\index.js:1132:16) { reason: 'missing argument: in Contract constructor', code: 'MISSING_ARGUMENT', count: 0, expectedCount: 2 }
Beta Was this translation helpful? Give feedback.
All reactions