Skip to content

_accountDelta duplicates _computeSlot #752

Closed
@wjmelements

Description

Component

Delta accounting

Describe the suggested feature and problem it solves.

The only user of _computeSlot, _accountDelta, computes it twice from the same parameters. The first time is in currency.getDelta. The second time is in setDelta.

While SHA3 is fairly cheap now there are plans to make it 10x more expensive.

Describe the desired implementation.

reuse the _computeSlot calculation for both TLOAD and TSTORE.

Describe alternatives.

No response

Additional context.

https://eips.ethereum.org/EIPS/eip-7667

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