go-ethereum/rlp/rlpgen/testdata
Ceyhun Onur 9ed36b613a
feat: Add support for named types with underlying basic types (#236)
## Why this should be merged

The current rlpgen partially supports named types with basic underlying,
and it generates the rlp without correct conversion i.e:
`w.WriteUint64(obj.Uint64NewT)`

This PR adds the full support it

## How this works

Adds check for `isNamedWithBasicUnderlying` and then returns a `op` with
`makeNamedBasicOp` which is basically a `basicOp` but with the `typ`
refers to the named type so that it can correctly encode decode with the
named type.

## How this was tested

Added UT tests

---------

Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
2025-10-08 08:07:57 +01:00
..
alias.in.txt feat(rlp/rlpgen): support alias types (#154) 2025-02-27 11:13:11 +00:00
alias.out.txt feat(rlp/rlpgen): support alias types (#154) 2025-02-27 11:13:11 +00:00
bigint.in.txt rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
bigint.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
named.libevm.in.txt feat: Add support for named types with underlying basic types (#236) 2025-10-08 08:07:57 +01:00
named.libevm.out.txt feat: Add support for named types with underlying basic types (#236) 2025-10-08 08:07:57 +01:00
nil.in.txt rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
nil.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
optional.in.txt rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
optional.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
rawvalue.in.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
rawvalue.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
uint256.in.txt rlp: support for uint256 (#26898) 2023-03-17 06:51:55 -04:00
uint256.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
uints.in.txt rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
uints.out.txt [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00