Skip to content

Storage Rent and Gas Metering for Smart Contract State #96

@SIDDHANTCOOKIE

Description

@SIDDHANTCOOKIE

Currently, when smart contracts write to their state, the storage dictionary is updated without dynamically metering the size of the state payload. Because contract storage is maintained as a Python dictionary that gets serialized, we should calculate its size dynamically by measuring the byte length of its JSON representation: len(json.dumps(account['storage'])).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions