Open heifner opened 8 months ago
The invalid_type_inside_abi is defined as
invalid_type_inside_abi
FC_DECLARE_DERIVED_EXCEPTION( invalid_type_inside_abi, abi_exception, 3015004, "The type defined in the ABI is invalid" ) // Not to be confused with abi_type_exception
Note the comment Not to be confused with abi_type_exception. Looks like it has been confused. It should be used only when validating the ABI. I believe these uses in abi_serializer::_variant_to_binary are incorrect. The exception there should be abi_type_exception. https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L595-L595 https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L575-L575 https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L356-L356
Not to be confused with abi_type_exception
abi_serializer::_variant_to_binary
abi_type_exception
This can comfortably slide into 6.0.0 instead of 5.x if necessary... fit into 5.0.1 opportunistically.
The
invalid_type_inside_abi
is defined asNote the comment
Not to be confused with abi_type_exception
. Looks like it has been confused. It should be used only when validating the ABI. I believe these uses inabi_serializer::_variant_to_binary
are incorrect. The exception there should beabi_type_exception
. https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L595-L595 https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L575-L575 https://github.com/AntelopeIO/leap/blob/d2af8636c116a66d530af34bc3565f73b7ed29eb/libraries/chain/abi_serializer.cpp#L356-L356