#Should we support i256/u256 types?
4 messages · Page 1 of 1 (latest)
Sure! We're trying to let developers call contracts running on Ethereum,
Polygon, Avalanche, etc. from Soroban and vice-versa. On these chains [iu]256
is (sadly) common, so when we call a Soroban contract from Solidity we have to
either:
- check values at the boundary and then (1) truncate to [iu]128 or (2) bail if
the value is too big. - implement [ui]256 as a library. This is probably not a huge deal, but leaves
room for error if it's not part of some standard lib.
ok. @wind hemlock is looking into this as part of a type overhaul: https://github.com/stellar/stellar-xdr/pull/64#issuecomment-1407271956
@heady acorn if there are other types you feel strongly about then feel free to comment on that issue