MCPcopy Create free account
hub / github.com/wevm/viem / parseSolStructFields

Function parseSolStructFields

scripts/generateTempoAbis.ts:734–742  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

732}
733
734function parseSolStructFields(body: string) {
735 return body
736 .split('\n')
737 .map((line) => line.replace(/\/\/.*$/, ''))
738 .join('\n')
739 .split(';')
740 .map((field) => field.replace(/\s+/g, ' ').trim())
741 .filter(Boolean)
742}
743
744function camelCase(name: string) {
745 return name

Callers 2

parseSolInterfacesFunction · 0.85
parseSolidityInterfacesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected