MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / decode_impl

Method decode_impl

src/decode_call.rs:120–133  ·  view source on GitHub ↗
(&self, input: &str, py: Python)

Source from the content-addressed store, hash-verified

118 }
119
120 pub fn decode_impl(&self, input: &str, py: Python) -> Option<Vec<DecodedSolValue>> {
121 let input = Data::decode_hex(input).context("decode input").unwrap();
122 let decoded_input = self
123 .inner
124 .decode_input(&input)
125 .context("decode log")
126 .unwrap();
127 decoded_input.map(|decoded_input| {
128 decoded_input
129 .into_iter()
130 .map(|value| DecodedSolValue::new(py, value, self.checksummed_addresses))
131 .collect()
132 })
133 }
134}

Callers 3

decode_inputs_syncMethod · 0.45

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected