Open TbLtzk opened 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
@TbLtzk This fix worked! Before I cannot send data to the contract, now it works!
It works with uint, but it still not works with string and address. Any clue ?
This issue does not apply to string
and address
, because there are no variants of these types with specific length (there is no address32
or something).
However, with all my PRs combined, we managed to submit a transaction at least with address
parameter to the kovan testnet.
@phoax @JoaoCampos89 @TbLtzk I am currently having the same problem. I want to pass a parameter to a smart contract function and just set that parameter to 0 or 1 in the smart contract function. Unfortunately this doesn't work no matter what data type I give the parameter, i.e. H. it doesn't work for me either with uint.
Do you still have the smart contract and the ESP program and would you please only post the relevant source code lines of the smart contract function and the ESP32 program here?
while data encoding works fine for
uint
, it fails foruint256
The correct functionality is already there. It does just not trigger. Ill come up with a fix for this...