web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Allow parsing of padded numerical strings

Open antonydenyer opened this issue 3 years ago • 0 comments

Padded numerical strings are no longer accepted

A bug was introduced in https://github.com/web3j/web3j/pull/1679

Whilst not producing a padded string may be desirable, you should certainly accept them. When calling Numeric.decodeQuantity an exception is now thrown if you pass a padded string. I think the Robustness Principle should be adhered to. For instance, an rpc endpoint may produce a padded string.

antonydenyer avatar Jul 22 '22 10:07 antonydenyer