Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Bug found in web3-utils/lib/esm/converters.js #6415

@rickychen-xm

Description

@rickychen-xm

I found one bug in below file
web3-utils/lib/esm/converters.js

It seems that is a error with the different type between BigInt and Number.
Pls help confirm.

the error log as below:

Cannot convert a BigInt value to a number TypeError: Cannot convert a BigInt value to a number at Math.pow () at expo10 (http://localhost:3000/static/js/bundle.js:107249:15) at ./node_modules/web3-utils/lib/esm/converters.js (http://localhost:3000/static/js/bundle.js:107256:9) at options.factory (http://localhost:3000/static/js/bundle.js:119570:31) at webpack_require (http://localhost:3000/static/js/bundle.js:119010:33) at fn (http://localhost:3000/static/js/bundle.js:119227:21) at ./node_modules/web3-utils/lib/esm/index.js (http://localhost:3000/static/js/bundle.js:108457:72) at options.factory (http://localhost:3000/static/js/bundle.js:119570:31) at webpack_require (http://localhost:3000/static/js/bundle.js:119010:33) at fn (http://localhost:3000/static/js/bundle.js:119227:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions