MCPcopy Index your code
hub / github.com/Commit-Boost/commit-boost-client / with_root

Method with_root

crates/common/src/commit/request.rs:130–132  ·  view source on GitHub ↗
(self, object_root: R)

Source from the content-addressed store, hash-verified

128 }
129
130 pub fn with_root<R: Into<B256>>(self, object_root: R) -> Self {
131 Self { object_root: object_root.into(), ..self }
132 }
133
134 pub fn with_msg(self, msg: &impl TreeHash) -> Self {
135 self.with_root(msg.tree_hash_root().0)

Callers 1

with_msgMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected