diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go
index dfbd025dadd8c1e0baa7f7babdc5c82eda246ef5..3a1ae6f4c3197028bf03d3e5a181f3c4bf6882d7 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