You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a typescript using ABI with web3-utils it fails.
Steps to reproduce the behavior
Add web3-utils to ur typescript project
When you define a ABI with type AbiItem and try to compile
it throws the above error
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
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: