cmd/abigen: parse contract name as abi identifier

release/1.5
Bas van Kervel 8 years ago
parent 296450451b
commit d0eeb3ebdc
  1. 4
      cmd/abigen/main.go

@ -94,7 +94,9 @@ func main() {
abi, _ := json.Marshal(contract.Info.AbiDefinition) // Flatten the compiler parse
abis = append(abis, string(abi))
bins = append(bins, contract.Code)
types = append(types, name)
nameParts := strings.Split(name, ":")
types = append(types, nameParts[len(nameParts)-1])
}
} else {
// Otherwise load up the ABI, optional bytecode and type name from the parameters

Loading…
Cancel
Save