Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/web3-eth-abi/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { AbiInput, AbiItem } from 'web3-utils';

export class AbiCoder {
declare class AbiCoder {
encodeFunctionSignature(functionName: string | AbiItem): string;

encodeEventSignature(functionName: string | AbiItem): string;
Expand All @@ -40,3 +40,6 @@ export class AbiCoder {
topics: string[]
): { [key: string]: string };
}

declare var coder: AbiCoder;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
declare var coder: AbiCoder;
declare const coder: AbiCoder;

I think you need to use const here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need? If it doesn't match you coding style, you can change it afterwards, or close and commit yourself. For me its only important that this bug gets fixed, not how.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just fix it, please. and also check tests. They do not pass after your changes.

export default coder;