Skip to content

Commit 018262c

Browse files
committed
adds method to add a notice to a response
1 parent 6a4f095 commit 018262c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tower-cartesi/src/response.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ impl Response {
3030
});
3131
}
3232

33+
pub fn add_notice(&mut self, payload: &[u8]) {
34+
self.outputs.push(Output::Notice {
35+
payload: payload.to_vec(),
36+
});
37+
}
38+
3339
pub fn finish_message(&self) -> Finish {
3440
match self.status {
3541
Status::Accept => Finish::accept(),

0 commit comments

Comments
 (0)