@@ -89,13 +89,13 @@ func TestEventSub(t *testing.T) {
89
89
sink := make (chan * subscription.Event , 10 )
90
90
eFact := func () * subscription.Event {
91
91
return & subscription.Event {
92
- Name : "Approval" ,
92
+ Name : bindings . Events . ERC20Approval ,
93
93
Data : new (peruntoken.ERC20Approval ),
94
94
}
95
95
}
96
96
// Setup the event sub after some events have been sent.
97
97
<- waitSent
98
- contract := bind .NewBoundContract (tokenAddr , bindings .ERC20TokenABI , cb , cb , cb )
98
+ contract := bind .NewBoundContract (tokenAddr , bindings .ABI . ERC20Token , cb , cb , cb )
99
99
sub , err := subscription .NewEventSub (ctx , cb , contract , eFact , 10000 )
100
100
require .NoError (t , err )
101
101
go ct .Stage ("sub" , func (t pkgtest.ConcT ) {
@@ -171,12 +171,12 @@ func TestEventSub_Filter(t *testing.T) {
171
171
sink := make (chan * subscription.Event , 1 )
172
172
eFact := func () * subscription.Event {
173
173
return & subscription.Event {
174
- Name : "Deposited" ,
174
+ Name : bindings . Events . AhDeposited ,
175
175
Data : new (assetholder.AssetHolderDeposited ),
176
176
Filter : [][]interface {}{Filter },
177
177
}
178
178
}
179
- contract := bind .NewBoundContract (ahAddr , bindings .AssetHolderABI , cb , cb , cb )
179
+ contract := bind .NewBoundContract (ahAddr , bindings .ABI . AssetHolder , cb , cb , cb )
180
180
sub , err := subscription .NewEventSub (ctx , cb , contract , eFact , 100 )
181
181
require .NoError (t , err )
182
182
go ct .Stage ("sub" , func (t pkgtest.ConcT ) {
0 commit comments