kopanitsa / web3-arduino

an Arduino (or ESP32) library to use web3 on Ethereum platform.
MIT License
105 stars 45 forks source link

fix #13 correct type name comparison #14

Open TbLtzk opened 5 years ago

TbLtzk commented 5 years ago

The issue is that sizeof("uint") returns 5 and not 4 as you expected.

The sizeof operator for string literals counts the terminating \0

I would even remove the sizeof part in the string comparison for the types address, string, bool because the don't have specific length variations, but up to you, to decide.