Adding a new Message
struct
We just say how to make a message that was a String
, but that is a little boring. Let's make a Message
with a body and a title.
pub struct Message {
title: String,
body: String,
}
Next we need to update contract's state struct.
pub struct StatusMessage {
records: LookupMap<AccountId, Message>,
}