It's often a little difficult working with ABIType instances of arrays. It would be nice to have some better tools.
Specification
class ABIType(...):
...
def is_array(self) -> bool:
# check if `self.type` is something like `...[]` or `...[...]`
def array_type(self) -> Optional["ABIType"]:
if self.is_array():
# fetch the "inner type" of the array, if it is an array type
Overview
It's often a little difficult working with
ABIType
instances of arrays. It would be nice to have some better tools.Specification
Dependencies
Would be helpful for https://github.com/ApeWorX/ape/pull/1319