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
The transaction types, e.g., transaction_1559.rs, encode the value only as a u64. However, this is not enough for accurately representing the number of tokens to be transferred in an Ethereum transaction as this is specified with 18 decimals in Ethereum (they use 32-byte / 256-bit numbers here). Assuming that the u64 value represents Wei, an u18 only allows to represent around up to 18 Ether.
Would it make sense to use type with a larger precision for representing the value? Technically, the same argument holds for the other numbers in the transaction, like the gas fee, but is's less of an issue here.
The text was updated successfully, but these errors were encountered:
Sounds like a good idea. Do you think that all the values that are encoded by Ethereum with 256 bits should be changed? The others like gas price are less crucial, but still it would be cleaner to have all be 256 bit.
The transaction types, e.g.,
transaction_1559.rs
, encode thevalue
only as au64
. However, this is not enough for accurately representing the number of tokens to be transferred in an Ethereum transaction as this is specified with 18 decimals in Ethereum (they use 32-byte / 256-bit numbers here). Assuming that theu64
value represents Wei, anu18
only allows to represent around up to 18 Ether.Would it make sense to use type with a larger precision for representing the
value
? Technically, the same argument holds for the other numbers in the transaction, like the gas fee, but is's less of an issue here.The text was updated successfully, but these errors were encountered: