I try to convert a pyteal.TxnExpr
to Int
with :
Int(tx.asset_amount())
But I get error :
pyteal.TealInputError: invalid input type <class ‘pyteal.TxnExpr’> to Int
I need to do that in order to use this int value to check another transaction.
How should we do the conversion to Int ?