@@ -40,6 +40,7 @@ const (
40
40
getBlockFunc = "GetBlock"
41
41
getTransactionByIDFunc = "GetTransactionByID"
42
42
getTransactionsByBlockIDFunc = "GetTransactionsByBlockID"
43
+ getSystemTransactionFunc = "GetSystemTransaction"
43
44
networkFunc = "Network"
44
45
pingFunc = "Ping"
45
46
removeContractFunc = "RemoveContract"
@@ -62,6 +63,7 @@ type MockServices struct {
62
63
GetBlock * mock.Call
63
64
GetTransactionByID * mock.Call
64
65
GetTransactionsByBlockID * mock.Call
66
+ GetSystemTransaction * mock.Call
65
67
Network * mock.Call
66
68
Ping * mock.Call
67
69
RemoveContract * mock.Call
@@ -199,6 +201,11 @@ func DefaultMockServices() *MockServices {
199
201
Network : m .On (networkFunc ),
200
202
Ping : m .On (pingFunc ),
201
203
SetLogger : m .On (setLoggerFunc , mock .AnythingOfType ("output.Logger" )),
204
+ GetSystemTransaction : m .On (
205
+ getSystemTransactionFunc ,
206
+ mock .Anything ,
207
+ mock .AnythingOfType ("flow.Identifier" ),
208
+ ),
202
209
}
203
210
204
211
t .GetAccount .Run (func (args mock.Arguments ) {
@@ -211,6 +218,7 @@ func DefaultMockServices() *MockServices {
211
218
})
212
219
213
220
t .GetTransactionByID .Return (tests .NewTransaction (), nil )
221
+ t .GetSystemTransaction .Return (tests .NewTransaction (), nil )
214
222
t .GetCollection .Return (tests .NewCollection (), nil )
215
223
t .GetEvents .Return ([]flow.BlockEvents {}, nil )
216
224
t .GetBlock .Return (tests .NewBlock (), nil )
0 commit comments