Skip to content

Harden TTL load paths #5020

@SirTyson

Description

@SirTyson

Currently, TTL and it's affiliated ContractData/ContractCode must be loaded separately. However, there should be no reason to load a data/code entry without it's associated TTL, so this interface can lead to footguns. We should refactor such that both the TTL and associated data/code entry are loaded at the same time and returned as some unified struct.

I believe @graydon is already working on hardening the data access layer with some compile time checks and type aliasing in #4971, so we should probably hold of on this until that is finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions