mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +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}}
|
// Solidity: event {{.Canonical}}
|
||||||
//
|
//
|
||||||
// {{if not .Anonymous}}Note: this method will fill in the Event ID topic{{end}}
|
// {{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}}")}
|
{{if not .Anonymous}}id := []common.Hash{common.HexToHash("{{.ID}}")}
|
||||||
topics = append([][]common.Hash{id}, topics...)
|
topics = append([][]common.Hash{id}, topics...)
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue