Skip to content

remove drop implementation and requiring detach or return for promise #1451

@PolyProgrammist

Description

@PolyProgrammist

#1165 (comment)

I think the only solution really is to remove the Drop implementation and require users to explicitly .detach() (this method was recently introduced) or return the Promise, and only the returned promise will be executed (we abused serde / borsh serialization for that: https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/promise.rs#L835-L859)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    NEW❗

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions