The above code results in:
TypeError: Unsupported type: '<class 'cfx_utils.token_unit.Drip'>'. Must be one of: bool, str, bytes, bytearrayor int.
A simple workaround is to use cfx_utils.token_unit.to_int_if_drip_units() when first constructing the tx but I look to the owners for best practice guidance
The getting started example below doesn't work right out of the box. It requires conversion from token unit type to int
https://github.com/Conflux-Chain/python-conflux-sdk/blob/3151662143f4db04f8ca83bf7b6b7b59570bdf08/docs/en/examples/11-construct_transaction_from_scratch.ipynb#L38
The above code results in:
TypeError: Unsupported type: '<class 'cfx_utils.token_unit.Drip'>'. Must be one of: bool, str, bytes, bytearrayor int.
A simple workaround is to use cfx_utils.token_unit.to_int_if_drip_units() when first constructing the tx but I look to the owners for best practice guidance
Tested with:
conflux-web3==1.2.2 web3==6.8.0