AbiErrorFragment class

Represents an error fragment in ABI, providing methods for decoding errors.

Implemented types

Constructors

AbiErrorFragment({required String name, List<AbiParameter> inputs = const []})
Creates an AbiErrorFragment instance.
AbiErrorFragment.fromJson(Map<String, dynamic> json, bool tronTypes)
Creates an instance of AbiErrorFragment from JSON representation.
factory

Properties

errorName String
Gets the error function name.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputs List<AbiParameter>
The list of input parameters for the fragment.
final
name String
The name of the error fragment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector List<int>
Gets the selector of the error.
no setter
signature List<int>
The signature of the error.
latefinal
type FragmentTypes
The type of the fragment.
final

Methods

decodeError(List<int> encodedParams) List
Decodes the error parameters from the encoded bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited