MetaMask / MetaMask/abi-utils

@metamask/eth-sig-utils imports @metamask/abi-utils and causes an error

Open
#77 0 comments 7 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
24
Forks
8
PR merge metrics
No merged PRs in 30d

Description

To be honest, I have no idea why this is happening. I'm using
@metamask/eth-sig-util@7.0.2
@metamask/abi-utils@2.0.2
and this is the error I get:

Cannot read properties of undefined (reading 'type')
TypeError: Cannot read properties of undefined (reading 'type')
at http://localhost:3030/static/js/bundle.js:648939:42
at Array.map ()
at union (http://localhost:3030/static/js/bundle.js:648939:31)
at ./node_modules/@metamask/abi-utils/dist/parsers/function.js (http://localhost:3030/static/js/bundle.js:56688:29)
at options.factory (http://localhost:3030/static/js/bundle.js:695040:31)
at __webpack_require__ (http://localhost:3030/static/js/bundle.js:694419:32)
at fn (http://localhost:3030/static/js/bundle.js:694698:21)
at ./node_modules/@metamask/abi-utils/dist/parsers/index.js (http://localhost:3030/static/js/bundle.js:56816:14)
at options.factory (http://localhost:3030/static/js/bundle.js:695040:31)
at __webpack_require__ (http://localhost:3030/static/js/bundle.js:694419:32)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with @metamask/eth-sig-util@7.0.2 and @metamask/abi-utils@2.0.2, using the reported webpack stack trace as the entry point. Inspect the interaction between dist/parsers/function.js and dist/parsers/index.js, then verify that importing the packages no longer throws the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.