Skip to content

Implement Copy for Coin / Vec<Coin> #77

@maurolacy

Description

@maurolacy

Currently when coins are sent in a message's sent_funds, they need to be cloned in order to be used independently of the containing struct (env / env.message). This makes some code constructs unnatural (or imply extra cloning of the whole structure).

See by example the discussion in #72 (comment) .

Rust errors E0382 / E0505 suggest as an alternative implementing the Copy trait, for the members that need to be accessed independently.

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