Skip to content

precompiles: check weight charging for reading/writing to contract #585

@evilrobot-01

Description

@evilrobot-01

Chain extensions required charging gas for reading from/writing to the contract buffer. The existing precompiles in the SDK do not seem to follow this pattern, implying that perhaps the precompile framework automatically handles this based on the encoded data being passed/to from the precompiles via generated solidity interface types.

Some investigation should be done to confirm whether this is indeed the case, or whether any additional charging needs to be added as a best practice. This could be done at the start of the call function implementation of the Precompile trait for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions