hedera-mirror-node
hedera-mirror-node copied to clipboard
Add ContractBytecodeDatabaseReadableKVState for reading contract runtime bytecode
Problem
We need to add a new type of database accessor to read contract runtime bytecode, so that we have specific ReadableKVState instance for this type of data.
Solution
Add ContractBytecodeDatabaseReadableKVState class that reads contract runtime bytecode data and converts the bytecode to Bytecode PBJ type.
Add unit tests to cover all cases including historical reads and correct mapping for all fields.
Alternatives
No response