@@ -89,13 +89,13 @@ func TestEventSub(t *testing.T) {
8989 sink := make (chan * subscription.Event , 10 )
9090 eFact := func () * subscription.Event {
9191 return & subscription.Event {
92- Name : "Approval" ,
92+ Name : bindings . Events . ERC20Approval ,
9393 Data : new (peruntoken.ERC20Approval ),
9494 }
9595 }
9696 // Setup the event sub after some events have been sent.
9797 <- waitSent
98- contract := bind .NewBoundContract (tokenAddr , bindings .ERC20TokenABI , cb , cb , cb )
98+ contract := bind .NewBoundContract (tokenAddr , bindings .ABI . ERC20Token , cb , cb , cb )
9999 sub , err := subscription .NewEventSub (ctx , cb , contract , eFact , 10000 )
100100 require .NoError (t , err )
101101 go ct .Stage ("sub" , func (t pkgtest.ConcT ) {
@@ -171,12 +171,12 @@ func TestEventSub_Filter(t *testing.T) {
171171 sink := make (chan * subscription.Event , 1 )
172172 eFact := func () * subscription.Event {
173173 return & subscription.Event {
174- Name : "Deposited" ,
174+ Name : bindings . Events . AhDeposited ,
175175 Data : new (assetholder.AssetHolderDeposited ),
176176 Filter : [][]interface {}{Filter },
177177 }
178178 }
179- contract := bind .NewBoundContract (ahAddr , bindings .AssetHolderABI , cb , cb , cb )
179+ contract := bind .NewBoundContract (ahAddr , bindings .ABI . AssetHolder , cb , cb , cb )
180180 sub , err := subscription .NewEventSub (ctx , cb , contract , eFact , 100 )
181181 require .NoError (t , err )
182182 go ct .Stage ("sub" , func (t pkgtest.ConcT ) {
0 commit comments