-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type AbiInput fails on TS compliation #3307
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
AbiItem should compile when using Typescript
Actual behavior
When compiling a typescript using ABI with web3-utils it fails.
Steps to reproduce the behavior
Logs
error: [app] Application is crashed: TSError: ⨯ Unable to compile TypeScript:
src/config/constants/MakerConstants.ts:868:13 - error TS2322: Type '{ internalType: string; name: string; type: string; }' is not assignable to type 'AbiInput'.
Object literal may only specify known properties, and 'internalType' does not exist in type 'AbiInput'.
868 internalType: 'uint256',
####Possbile Solution
In
web3-utils/types/index.d.ts
add
internalType?: string;
Versions
Node: v12.6.0
"web3-utils": "^1.2.4"
The text was updated successfully, but these errors were encountered: