How to print/emit logs in Algorand SmartContract.
This is how I’m doing it:
@Subroutine(TealType.none)
def staked(token, requested_amount, staked_amount):
return Log(Concat(Bytes("staked { token: "), convert_uint_to_bytes(token), Bytes(", requested_amount: "), convert_uint_to_bytes(requested_amount), Bytes(", staked_amount: "), convert_uint_to_bytes(staked_amount), Bytes("}") ))
staked(App.globalGet(staking_token), amount, remaining_token.load()),
But it doesn’t work
