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

Can't make Contract with ABI that contains event types #25

Open
niZmosis opened this issue Nov 12, 2021 · 2 comments
Open

Can't make Contract with ABI that contains event types #25

niZmosis opened this issue Nov 12, 2021 · 2 comments

Comments

@niZmosis
Copy link

niZmosis commented Nov 12, 2021

When providing the full ABI to the multicall Contract, I get an error "TypeError: Cannot read properties of null (reading 'type')"

Here is where the code brings me to. If I remove all event types and only leave function types, it will work.

Contract.js line 12
for (var _i = 0, callFunctions_1 = callFunctions; _i < callFunctions_1.length; _i++) { var callFunction = callFunctions_1[_i]; var name = callFunction.name; var getCall = makeCallFunction(this, name); if (!this[name]) { defineReadOnly(this, name, getCall); } };

@ghost
Copy link

ghost commented Apr 6, 2022

Have you found a solution to this? I'm having the same issue and i'm not finding a way to make, as an example, 10 or more reads from a contract without having terrible ux. Are multicalls the only solution?

@niZmosis
Copy link
Author

niZmosis commented Apr 6, 2022

Have you found a solution to this? I'm having the same issue and i'm not finding a way to make, as an example, 10 or more reads from a contract without having terrible ux. Are multicalls the only solution?

Nope, just a work around by taking out events from the ABI, haven't had a problem since.

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