Better console/inspect display value of BigNumber #1961
drortirosh
started this conversation in
Ideas
Replies: 2 comments 9 replies
-
That is exactly what the playground.ethers.org does. :) But not something I would include in the core library, because it is fairly node specific, and depends on the inspect library you are using. In v6, the display includes the base-10 number though. :) |
Beta Was this translation helpful? Give feedback.
4 replies
-
I have similar problem. Every value in an object is a BigNumber, and it's impossible to read without parsing it first. (I'm migrating from web3, and there every value was a simple string). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
currently, doing
yields
It is better to provide the number in a better form..
I currently have a local helper in my config file:
which generates a much more readable form:
BigNumber 100000000000000000000
Beta Was this translation helpful? Give feedback.
All reactions