Skip to content

Const fields #192

Open
Open
@g-r-a-n-t

Description

@g-r-a-n-t

What is wrong?

There is no way for a user to specify that a field is constant.

This would allow for significant gas saving, since we can store constant values in bytecode, instead of storage.

How can it be fixed

Do something similar to the work done on static strings. The syntax should look something like this: const MINIMUM_LIQUIDITY: u256 = 1000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions