When trying to check the transferred value is positive I get an error that TMutez
is not TIntOrNat
.:
sp.verify(sp.amount > 0, "Amount should be positive")
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityIt seems like SmartPy type inference doesn't auto-cast 0 to mutez. We need to do the following:
sp.amount > sp.mutez(0)