Skip to content

Use value receiver for Value() #187

@HydroH

Description

@HydroH

Many orms represent nullable value by pointers and non-null value by struct value. uint256.Int however uses pointer receiver for Value(), which causes panic when trying to store a null value to database, because the pointer is nil. It is a common practice to use value receiver for Value() interface to avoid such problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions