To be honest, I have no idea why this is happening. I'm using
@metamask/[email protected]
@metamask/[email protected]
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)