1

I want to use uint256_t in my EOS smart contract but I am getting following error

unknown type name 'uint256_t'; did you mean 'uint16_t'?

I thought EOS supports uint256_t as I read it in some EOS documentation. Unfortunately, I can't seem to find that piece of documentation again!

This Reddit link also says the uint256_t is supported! Did I miss something?

  • uint256_t is not actually defined in eosio. if you want a third party library for this see this – confused00 Nov 14 '18 at 10:23
1

According to the documentation, you can use the uint256_t type, for instance, as secondary index of a multi index table. Here you can find an example (is commented).

-1

uint256_t is not provided in eos, you may use boost::multiprecision to get a typedef for uint256_t

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.