chore: Fix remaining necessary casts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AbiDefinition, AbiType, ContractAbi, DataItem } from 'ethereum-types';
|
||||
import { AbiDefinition, AbiType, ConstructorAbi, ContractAbi, DataItem } from 'ethereum-types';
|
||||
import * as _ from 'lodash';
|
||||
import * as web3Abi from 'web3-eth-abi';
|
||||
|
||||
@@ -7,7 +7,8 @@ export const encoder = {
|
||||
const constructorTypes: string[] = [];
|
||||
_.each(abi, (element: AbiDefinition) => {
|
||||
if (element.type === AbiType.Constructor) {
|
||||
_.each(element.inputs, (input: DataItem) => {
|
||||
const constuctorAbi = element as ConstructorAbi;
|
||||
_.each(constuctorAbi.inputs, (input: DataItem) => {
|
||||
constructorTypes.push(input.type);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user