Skip to content

Incorrect handling of drop for RefCell (borrow flag modified during drop) #807

@Stevengre

Description

@Stevengre

The current handling of drop appears to be incorrect.
In the case of RefCell, the drop operation modifies the internal borrow variable, which is not the intended behavior.

We plan to address this by introducing a spl-token specific cheatcode in a separate PR without touching the drop, along with fix: drop to handle drop generally not just for Refcell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions