deocde_transfer can be simplified because in ERC20CodecV1 because none of the params of the ERC20TransferPayload struct are of dynamic type (string or bytes). Encoding/decoding can be easily simplified because it doesnt matter whether the encoding is packed or not, the output bytes will be always the same, due to the types of properties:
ERC20CodecV1.sol
Additionally, the decoding is also heavily complicated; it can simply decode to the ERC20TransferPayload directly instead of manually parsing and slicing the array:
ERC20CodecV1.sol
encode_transfer should be modified like this:
deocde_transfer should look like this:
