aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-10 18:11:43 +0800
committerGitHub <noreply@github.com>2017-02-10 18:11:43 +0800
commit0cc9409fdab60da1f3c9cf24868c95b164dc18c5 (patch)
tree4f1ba47bbe86451c659c90beec6790d11e6d1660 /cmd
parent6dd27e7cff818493356ddecd8918b69fb18b998a (diff)
parentd0eeb3ebdcb58f62ab4c542aef9e865c10797175 (diff)
downloadgo-tangerine-0cc9409fdab60da1f3c9cf24868c95b164dc18c5.tar.gz
go-tangerine-0cc9409fdab60da1f3c9cf24868c95b164dc18c5.tar.zst
go-tangerine-0cc9409fdab60da1f3c9cf24868c95b164dc18c5.zip
Merge pull request #3648 from bas-vk/abigen
cmd/abigen: parse contract name as abi identifier
Diffstat (limited to 'cmd')
-rw-r--r--cmd/abigen/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go
index dfbd025da..3a1ae6f4c 100644
--- a/cmd/abigen/main.go
+++ b/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