Skip to content

Commit

Permalink
cmd/abigen: parse contract name as abi identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-vk committed Feb 6, 2017
1 parent 2964504 commit d0eeb3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/abigen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0eeb3e

Please sign in to comment.