I have a guardscript that checks 2 tokens to see if its full. However, this can't compile due to the box not have a 2nd token.
val checkTokens: Boolean =
if (SELF.tokens.size < 2) true
else {
SELF.tokens(1)._1 == _tokenId.get && SELF.tokens(1)._2 < x
}
How can we deal with this kind of situation?