You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the snippet attached below, if you pass decimal numbers to the FeeMarketEIP1559Transaction constructor it doesn't throw any errors, but alters the values silently, this can be very dangerous as the final payload when ran in a browser environment converts 33974229950.550003 -> 35624562130324685 which is a much larger number than what was originally passed, increasing the gas price.
Hi @Matko95, thanks for opening this issue. One thing I keep wondering about, which you might have more insight in: why does the browser report different values than the values reported by node?
We have just released new versions of the Util and Tx libraries in #1501 which address the issue and provides a safer instantiation on the integer values.
In the snippet attached below, if you pass decimal numbers to the FeeMarketEIP1559Transaction constructor it doesn't throw any errors, but alters the values silently, this can be very dangerous as the final payload when ran in a browser environment converts
33974229950.550003
->35624562130324685
which is a much larger number than what was originally passed, increasing the gas price.The text was updated successfully, but these errors were encountered: