how to obtain the length of list of address? #2346
Unanswered
QuetzalAzul
asked this question in
Q&A
Replies: 1 comment
-
I made an issue for this, but honestlly you don't need to do that check. Both arrays are "static arrays" meaning they cannot be less than Still, it should be a thing you can do: #2347 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to compile this code
def balanceOfBatch(accounts: address[50], ids: uint256[50]) -> uint256[100]:
assert len(accounts) == len(ids), "ERC1155: accounts and ids length mismatch"
but tells me that len only function for bytes and string types
Beta Was this translation helpful? Give feedback.
All reactions