Method ThrowIfInvalid
ThrowIfInvalid(AbiArgumentMapResult, bool)
Throws if
result does not have MappingIsValid set.public static void ThrowIfInvalid(this AbiArgumentMapResult result, bool allowIncompatibleReturnTypes = false)
Parameters
resultAbiArgumentMapResult- The AbiArgumentMapResult to check.
allowIncompatibleReturnTypesbool- true to allow incompatible return types; false to them as invalid.
Remarks
The message of the thrown exception encodes information stored in the other bits of result
automatically.
Exceptions
- InvalidOperationException
- Thrown if
resultdoes not have MappingIsValid set with an informative message.