Y

Ethers/6/Contracts/Ambiguous-Methods

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

In v5, in the case of an ambiguous method, it was necessary to look up a method by its canonical normalized signature. In v6 the signature does not need to be normalized and the Typed API provides a cleaner way to access the desired method.

In v5, duplicate definitions also injected warnings into the console, since there was no way to detect them at run-time.

Example

Before

ts

After

ts

Transformation done using this codemod

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.