Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How can I convert Ethereum uint256 variables into Solana Rust?
I think we do not need an additional library like uint256 because the Solana Program Library(their token library) is using u64 for the amount to transfer.
uint128 in Rust is actually large enough.
uint128 has a range of 0 to 2^128 - 1, which is enough for Ethereum uint256.
2^256 - 1
Required, but never shown