Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Prev Previous commit
Next Next commit
Fix ts in abi
  • Loading branch information
amaury1093 committed Nov 22, 2018
commit 4a961b9c336aa9e05d7b6feade6fa890e8ec7075
2 changes: 1 addition & 1 deletion packages/abi/src/spec/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Interface {
return new Token(
paramType.type,
(value as TokenValue[]).map(entry =>
createToken(paramType.subtype, entry)
createToken(paramType.subtype as ParamType, entry)
)
);
}
Expand Down
7 changes: 1 addition & 6 deletions packages/abi/src/util/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ export const methodSignature = (
*
* @param name - Name to parse.
*/
export const parseName = (
name: string | undefined
): {
strName: string;
name: string;
} => {
export const parseName = (name: string | undefined) => {
const strName = `${name || ''}`;
const index = strName.indexOf('(');

Expand Down