MCPcopy Create free account
hub / github.com/blacksmith-eth/blacksmith / Func

Function Func

components/function/index.tsx:12–27  ·  view source on GitHub ↗
({ address, func }: FuncProps)

Source from the content-addressed store, hash-verified

10};
11
12export const Func = ({ address, func }: FuncProps) => {
13 switch (func.stateMutability) {
14 case "pure":
15 return <Pure address={address} func={func} initialCollapsed={true} />;
16 case "view":
17 return <View address={address} func={func} initialCollapsed={true} />;
18 case "nonpayable":
19 return (
20 <Nonpayable address={address} func={func} initialCollapsed={true} />
21 );
22 case "payable":
23 return <Payable address={address} func={func} initialCollapsed={true} />;
24 default:
25 return <></>;
26 }
27};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected