stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3k stars 658 forks source link

Use serde `prefix_hex` or `prefix_hex_opt` for all RPC return structs #4876

Closed kantai closed 3 weeks ago

kantai commented 3 weeks ago

Per the comments in #4801, we have a serde decorator that creates 0x prefixed hex strings for byte array types (and option types of those). We should use that decorator throughout our RPC structs.