trying to invoke a call using a contract function that takes a bool input - however using web3.py the bool input to the contract call always comes out as false...
Eg: contract.functions.calcTax(token, pointOneEth, True).call(txParams) actually results in a result that would be calculated it the third input is False, not True.
I do, but I cannot recall this knowledge. Can you replace True with 1?
Yea tried that, gives an error :( I can get around it with using uint8 and 1 and 0 literal tests, but that's hella ugly
Anyway I remember one codebase using uint8 instead of bool and surprisingly it spends less gas.
Unit are better than enums
Will do! Thanks
Обсуждают сегодня