mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
abi/bind: generate log subscription funcs on eventer type
This commit is contained in:
parent
b2242ec15f
commit
d8ee7df03b
1 changed files with 1 additions and 1 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue