Specify the controller for the event
(mut self, controller: &str)
| 373 | } |
| 374 | /// Specify the controller for the event |
| 375 | pub fn with_controller(mut self, controller: &str) -> Builder<WithController> { |
| 376 | self.state |
| 377 | .bytes |
| 378 | .extend(last8_bytes(&sha256_digest(controller))); |
| 379 | Builder { |
| 380 | state: WithController { |
| 381 | bytes: self.state.bytes, |
| 382 | }, |
| 383 | } |
| 384 | } |
| 385 | } |
| 386 | impl Builder<WithController> { |
| 387 | /// Specify that the minimum init value should be used for the event |