From d8ee7df03b9d76969aa3689eadf3494e34e0149b Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Mon, 9 Oct 2017 13:24:34 +0200 Subject: [PATCH] abi/bind: generate log subscription funcs on eventer type --- accounts/abi/bind/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 3a57442bda..8ed0186a4d 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -323,7 +323,7 @@ package {{.Package}} // Solidity: event {{.Canonical}} // // {{if not .Anonymous}}Note: this method will fill in the Event ID topic{{end}} - func (_{{$contract.Type}} *{{$contract.Type}}Caller) Subscribe{{.Name}}(opts *bind.CallOpts, ch chan<- types.Log, topics ...[]common.Hash) (ethereum.Subscription, error) { + func (_{{$contract.Type}} *{{$contract.Type}}Eventer) Subscribe{{.Name}}(opts *bind.CallOpts, ch chan<- types.Log, topics ...[]common.Hash) (ethereum.Subscription, error) { {{if not .Anonymous}}id := []common.Hash{common.HexToHash("{{.ID}}")} topics = append([][]common.Hash{id}, topics...) {{end}}