Skip to content

PrivateMutable.replace should return previous note #7065

@olehmisar

Description

@olehmisar

To avoid calling get_note if you need the previous note

before

let prev = x.get_note();
assert(prev.something);
x.replace(y);

after:

let prev = x.replace(y);
assert(prev.something);

Metadata

Metadata

Assignees

Labels

C-aztec.nrComponent: Aztec smart contract frameworkT-feature-requestType: Adding a brand new feature (not to be confused with improving an existing feature).from-communityThis originated from the community :)

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions