Currently, because of this line, attempting to calculate the method ID for a function-signature containing an type unimplemented in ABI.FunctionSelector.get_type/1 fails to raise an exception, and instead silently returns a corrupted method ID.
This PR fixes the problematic line to actually raise, but goes further by implementing proper get_type/1 support for every standard ABI type. The problematic line should never be reachable now.
Currently, because of this line, attempting to calculate the method ID for a function-signature containing an type unimplemented in
ABI.FunctionSelector.get_type/1
fails to raise an exception, and instead silently returns a corrupted method ID.This PR fixes the problematic line to actually
raise
, but goes further by implementing properget_type/1
support for every standard ABI type. The problematic line should never be reachable now.