AlphaWallet / Web3E

Web3E Ethereum for Embedded devices running Arduino framework
MIT License
142 stars 45 forks source link

conversion from 'uint256_t' to 'size_t' {aka 'unsigned int'} is ambiguous #18

Closed lyhistory closed 1 year ago

lyhistory commented 1 year ago

Web3.cpp compile error: `string Web3::getString(const string json) { TagReader reader; string parseVal = reader.getTag(json, "result"); vector v = Util::ConvertStringHexToABIArray(&parseVal);

uint256_t length = uint256_t(v->at(1));
int lengthIndex = (size_t)length;`

image

JamesSmartCell commented 1 year ago

Got it, thanks for reporting. I have fixed this and will do a new release today.

JamesSmartCell commented 1 year ago

Fixed in v1.44