Skip to content

Change the NoteMetadata constructor not to take the tag by default #2383

@mmagician

Description

@mmagician

Also, maybe we should change the NoteMetadata constructor not to take the tag by default. This way, we'd just do:

let metadata = NoteMetadata::new(sender_account_id, NoteType::Public)
    .with_attachment(attachment);

And in cases when the tag is required, we'd do:

let metadata = NoteMetadata::new(sender_account_id, NoteType::Public)
    .with_tag(tag)
    .with_attachment(attachment);

Originally posted by @bobbinth in #2334 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions