MCPcopy Create free account
hub / github.com/cowprotocol/services / get_sol_input

Method get_sol_input

contracts/src/codegen.rs:442–454  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

440 }
441
442 fn get_sol_input(&self) -> Result<SolInput> {
443 let path = self.path.to_string_lossy().into_owned();
444 let name = proc_macro2::Ident::new(&self.name, Span::call_site());
445 let tokens = quote::quote! {
446 #[sol(ignore_unlinked)]
447 #name,
448 #path
449 };
450
451 let sol_input: SolInput = syn::parse2(tokens).context("failed to parse input")?;
452
453 Ok(sol_input)
454 }
455}

Callers 1

generate_bindingFunction · 0.80

Calls 2

contextMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected