The function returns all the errors of a Contract.
errors() β List[Error]
from glider import * def query(): contracts = Contracts().exec(5, 150) names = [] for contract in contracts: errors = contract.errors() for error in errors: names.append(error.name) return [{"names": names}]
{ "names": [ "InvalidArgument", "FailedToSendEther" ] }
Last updated 4 months ago