0000000000000000000000000000000000000000000000000000000000000c9f
does anyone knows how to leave out all zeros in ethers js?

Aug 19, 2022, 8:27 PM
Why do you need ethersjs? If the size always remain same then you can use simple javascript stuffs like substring..
Aug 19, 2022, 8:51 PM
That’s the thing it’s not always the same
I was just curious if there is a method in ethers Js that does it for me like format ether
Aug 19, 2022, 9:32 PM
I mean size (i.e length) not characters..

if I'm not wrong format ether from ethersjs is just a wrapper of dividing the actual value by 1e18... so it handles same size only not a varied one..

Btw if size changes also simple javascript will help you like replace...
Aug 19, 2022, 9:41 PM

© 2024 Draquery.com All rights reserved.