Replies: 10 comments 6 replies
-
There is no Solidity type called an |
Beta Was this translation helpful? Give feedback.
-
It's an interface contract used as type. Customized struct in lib contract also leads this warning |
Beta Was this translation helpful? Give feedback.
-
Can you include what you are doing that gives that error when you use the struct? Keep in mind Ethers needs to know what the “shape” of the struct looks like in order to encode and decode data into the format that the contract is expecting. I need more background to help. :) (moving to discussions though, as this isn’t a bug in Ethers) |
Beta Was this translation helpful? Give feedback.
-
is there any progress of this issue? I have met same problem, when i use a contract as type to a function input, but not all functions warning this issue in this library, Cuz other functions were compiled this contract type to type address. |
Beta Was this translation helpful? Give feedback.
-
[Warning] Invalid Fragment {"inputs":[{"internalType":"contract DataStore","name":"dataStore","type":"DataStore"},{"internalType":"address","name":"underlyingAsset","type":"address"}],"name":"get","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}: invalid type (argument="type", value="DataStore", code=INVALID_ARGUMENT, version=6.11.1) |
Beta Was this translation helpful? Give feedback.
-
I am tracking this issue, it was assert by ethers/lib.commonjs/abi/fragments.js/verifyBasicType |
Beta Was this translation helpful? Give feedback.
-
This line will get the warning, I have tested in mac and ubuntu |
Beta Was this translation helpful? Give feedback.
-
the same abi in ethers.js V5.7.2 do NOT have this warning
|
Beta Was this translation helpful? Give feedback.
-
I got similar warnings after upgrading from ethers V5 to V6, which is a bit annoying. Hopefully it will be fixed in future release. |
Beta Was this translation helpful? Give feedback.
-
I met this problem with "ethers": "^6.13.2", any solution for this? |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
6.11.1
Search Terms
No response
Describe the Problem
when I use interface in library contract , it cuz ethers warning while deploying:
I also noticed that any struct, interface, enum as func params in library contract would lead to this warning when deploying using ethers
Code Snippet
Beta Was this translation helpful? Give feedback.
All reactions