forked from cerc-io/plugeth
Merge pull request #3648 from bas-vk/abigen
cmd/abigen: parse contract name as abi identifier
This commit is contained in:
commit
0cc9409fda
@ -94,7 +94,9 @@ func main() {
|
|||||||
abi, _ := json.Marshal(contract.Info.AbiDefinition) // Flatten the compiler parse
|
abi, _ := json.Marshal(contract.Info.AbiDefinition) // Flatten the compiler parse
|
||||||
abis = append(abis, string(abi))
|
abis = append(abis, string(abi))
|
||||||
bins = append(bins, contract.Code)
|
bins = append(bins, contract.Code)
|
||||||
types = append(types, name)
|
|
||||||
|
nameParts := strings.Split(name, ":")
|
||||||
|
types = append(types, nameParts[len(nameParts)-1])
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Otherwise load up the ABI, optional bytecode and type name from the parameters
|
// Otherwise load up the ABI, optional bytecode and type name from the parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user