Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse ethers funciton #20

Open
TheReturnOfJan opened this issue Jul 22, 2020 · 0 comments
Open

Reuse ethers funciton #20

TheReturnOfJan opened this issue Jul 22, 2020 · 0 comments

Comments

@TheReturnOfJan
Copy link
Collaborator

const funcFragment = contract.interface.fragments.reduce((acc, cv) => {

Use this instead:

https://github.com/ethers-io/ethers.js/blob/e805ab5b2d9bac400babf42ae1a84ba47f136253/packages/abi/src.ts/interface.ts#L179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant