EthereumKit icon indicating copy to clipboard operation
EthereumKit copied to clipboard

Crash. BInt can't create really big ints

Open maximuskravchenko opened this issue 6 years ago • 1 comments

STR: Wei(hex: "56d49825b27744c60") (equivalent to 100.10868911999734896 Ether)

Result: Fatal error: Not enough bits to represent a signed value.

Same result with all values bigger then hex 0x56d49825b27744c60.

maximuskravchenko avatar Jun 05 '18 11:06 maximuskravchenko

iOS 10.0 also crashing, for example:

BInt("15823297914388465068645274956031579191506355248080856511104898257696315269079", radix: 10)

on iOS 11.0 it works fine.

DmitryBespalov avatar Jun 06 '18 09:06 DmitryBespalov