@@ -312,6 +312,10 @@ func (it *fakeContractReaderInterfaceTester) Setup(_ *testing.T) {
312
312
}
313
313
}
314
314
315
+ func (it * fakeContractReaderInterfaceTester ) Init (_ * testing.T ) {
316
+
317
+ }
318
+
315
319
func (it * fakeContractReaderInterfaceTester ) GetContractReader (_ * testing.T ) types.ContractReader {
316
320
return it .impl
317
321
}
@@ -1162,6 +1166,7 @@ func runContractReaderByIDQueryKey(t *testing.T) {
1162
1166
func (t * testing.T ) {
1163
1167
t .Parallel ()
1164
1168
fake := & fakeContractReader {}
1169
+ fakeCW := & fakeContractWriter {}
1165
1170
tester := & fakeContractReaderInterfaceTester {impl : fake }
1166
1171
tester .Setup (t )
1167
1172
@@ -1179,14 +1184,14 @@ func runContractReaderByIDQueryKey(t *testing.T) {
1179
1184
require .NoError (t , cr .Bind (ctx , toBind ))
1180
1185
1181
1186
ts1AnyContract := CreateTestStruct (0 , tester )
1182
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnyContract , anyContract , types .Unconfirmed )
1187
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnyContract , anyContract , types .Unconfirmed )
1183
1188
ts2AnyContract := CreateTestStruct (1 , tester )
1184
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnyContract , anyContract , types .Unconfirmed )
1189
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnyContract , anyContract , types .Unconfirmed )
1185
1190
1186
1191
ts1AnySecondContract := CreateTestStruct (0 , tester )
1187
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnySecondContract , anySecondContract , types .Unconfirmed )
1192
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnySecondContract , anySecondContract , types .Unconfirmed )
1188
1193
ts2AnySecondContract := CreateTestStruct (1 , tester )
1189
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnySecondContract , anySecondContract , types .Unconfirmed )
1194
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnySecondContract , anySecondContract , types .Unconfirmed )
1190
1195
1191
1196
tsAnyContractType := & TestStruct {}
1192
1197
require .Eventually (t , func () bool {
@@ -1205,6 +1210,8 @@ func runContractReaderByIDQueryKey(t *testing.T) {
1205
1210
func (t * testing.T ) {
1206
1211
t .Parallel ()
1207
1212
fake := & fakeContractReader {}
1213
+ fakeCW := & fakeContractWriter {}
1214
+
1208
1215
tester := & fakeContractReaderInterfaceTester {impl : fake }
1209
1216
tester .Setup (t )
1210
1217
@@ -1225,22 +1232,22 @@ func runContractReaderByIDQueryKey(t *testing.T) {
1225
1232
require .NoError (t , cr .Bind (ctx , toBind ))
1226
1233
1227
1234
ts1AnyContract1 := CreateTestStruct (0 , tester )
1228
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnyContract1 , anyContract1 , types .Unconfirmed )
1235
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnyContract1 , anyContract1 , types .Unconfirmed )
1229
1236
ts2AnyContract1 := CreateTestStruct (1 , tester )
1230
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnyContract1 , anyContract1 , types .Unconfirmed )
1237
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnyContract1 , anyContract1 , types .Unconfirmed )
1231
1238
ts1AnyContract2 := CreateTestStruct (2 , tester )
1232
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnyContract2 , anyContract2 , types .Unconfirmed )
1239
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnyContract2 , anyContract2 , types .Unconfirmed )
1233
1240
ts2AnyContract2 := CreateTestStruct (3 , tester )
1234
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnyContract2 , anyContract2 , types .Unconfirmed )
1241
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnyContract2 , anyContract2 , types .Unconfirmed )
1235
1242
1236
1243
ts1AnySecondContract1 := CreateTestStruct (4 , tester )
1237
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnySecondContract1 , anySecondContract1 , types .Unconfirmed )
1244
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnySecondContract1 , anySecondContract1 , types .Unconfirmed )
1238
1245
ts2AnySecondContract1 := CreateTestStruct (5 , tester )
1239
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnySecondContract1 , anySecondContract1 , types .Unconfirmed )
1246
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnySecondContract1 , anySecondContract1 , types .Unconfirmed )
1240
1247
ts1AnySecondContract2 := CreateTestStruct (6 , tester )
1241
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts1AnySecondContract2 , anySecondContract2 , types .Unconfirmed )
1248
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts1AnySecondContract2 , anySecondContract2 , types .Unconfirmed )
1242
1249
ts2AnySecondContract2 := CreateTestStruct (7 , tester )
1243
- _ = SubmitTransactionToCW (t , tester , MethodTriggeringEvent , ts2AnySecondContract2 , anySecondContract2 , types .Unconfirmed )
1250
+ _ = SubmitTransactionToCW (t , tester , fakeCW , MethodTriggeringEvent , ts2AnySecondContract2 , anySecondContract2 , types .Unconfirmed )
1244
1251
1245
1252
tsAnyContractType := & TestStruct {}
1246
1253
require .Eventually (t , func () bool {
0 commit comments