Skip to content

Upgradable::up_stage_code should take param code: Option<Vec<u8>> #73

@mooori

Description

@mooori

...with None removing any staged code. This is more idiomatic than removing staged code when the vector passed to up_stage_code is empty:

https://github.com/aurora-is-near/near-plugins/blob/c043add4c2a0810872c4326a55c5162bccd3f4ee/near-plugins-derive/src/upgradable.rs#L32-L39

The possibility to remove staged code should also be mentioned in the docs.

The issue is based on this discussion.

Metadata

Metadata

Assignees

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