Submitted by Franfran
The LegacyAmino codec is used for legacy reasons.
Even if this codec is in the process of being deprecated for gogoprotobuf, its still relevant and if not implemented correctly, it wont work correctly.
Here is the implementation of the RegisterConcrete method to register the amino methods:
As explained in the docs comment, it should be used to register concrete types for the interface. The name should match the amino.name options in the protobuf messages or it wont be able to find the interface and wont be able to encode/decode messages. Here are the places where the name is mismatched.
The RegisterAminoMsg can also be called which adds a check on the length of the input. However, it has not been found that any name exceeds this length of 39 characters. As a recommendation, the RegisterAminoMsg is preferred.
MiniEVM
MiniWASM
Initia
Make sure that the amino names are matching.
hoon (Initia) confirmed and commented:
Initia mitigated:
Status: Mitigation confirmed. Full details in reports from berndartmueller, 0xAlix2 and Franfran.
