Specify the init cid of the event
(mut self, init: &Cid)
| 404 | } |
| 405 | /// Specify the init cid of the event |
| 406 | pub fn with_init(mut self, init: &Cid) -> Builder<WithInit> { |
| 407 | self.state |
| 408 | .bytes |
| 409 | .extend(last4_bytes(init.to_bytes().as_slice())); |
| 410 | Builder { |
| 411 | state: WithInit { |
| 412 | bytes: self.state.bytes, |
| 413 | }, |
| 414 | } |
| 415 | } |
| 416 | } |
| 417 | impl Builder<WithInit> { |
| 418 | /// Specify that the minimum event CID should be used for the event |