The Solidity documentation says it supports inheritance by copying code, but is unclear about where the code is copied to. I am building a genesis block for a Quorum-based chain, starting from the code in
davebryson/quorum-genesis. My chain is preloaded with another contract which uses inheritance, and I would like to preload some state into the parent contract. The storage key indexes contract variables based on the order they are declared, so I need to know whether the parent contract's variables are copied before or after the child contract's variables.
Does anyone know whether parent code is copied to the top or the bottom of the child code?