Skip to content

ushort ContractState.UpdateCounter overflow #2668

@vang1ong7ang

Description

@vang1ong7ang

AN EPIC ACHIEVEMENT IS UNLOCKED:

by keeping updating the smart contract until itsUpdateCounter jumps back to 0

although it is designed to be increased only

it is proven that UpdateCounter is not secure any more with the hundreds of GAS cost.

i suggest to use something longer than int to replace ushort.

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