Skip to content

[GrantShares] GBA-05 Safe Contract Update #75

Open
@OT-kraftchain

Description

@OT-kraftchain

It is important to mention that the owner of the contract has the possibility of updating the contract, which implies a possible change in the logic and in the functionalities of the contract, subtracting part of the concept of decentralized trust.

Although this is a recommended practice in these early phases of the N3 blockchain where significant changes can still take place, it would be convenient to include certain protections to increase transparency for the users so they can act accordingly.

Recommendations
Several best practices can help mitigate this issue, including implementing a TimeLock before initiating Update operations, emitting events when the Update operation is requested, temporarily disabling relevant contract functionalities, and issuing a last notification and execute
the Update operation after the TimeLock is completed.

Source Code References

public static void update(ByteString nef, String manifest, Object data) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions