Skip to content

Commit

Permalink
Update param --> parameter to fix conflicting names
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Rabbani committed Mar 16, 2022
1 parent e409059 commit f468636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions statediff/test_helpers/mocks/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var (
bankAccount,
})
mockTotalDifficulty = big.NewInt(1337)
params = statediff.Params{
parameters = statediff.Params{
IntermediateStateNodes: false,
IncludeTD: true,
IncludeBlock: true,
Expand Down Expand Up @@ -176,7 +176,7 @@ func testSubscriptionAPI(t *testing.T) {
}
}()
time.Sleep(1)
mockService.Subscribe(id, payloadChan, quitChan, params)
mockService.Subscribe(id, payloadChan, quitChan, parameters)
blockChan <- block1
parentBlockChain <- block0
wg.Wait()
Expand Down Expand Up @@ -234,7 +234,7 @@ func testHTTPAPI(t *testing.T) {
Builder: statediff.NewBuilder(chain.StateCache()),
BlockChain: mockBlockChain,
}
payload, err := mockService.StateDiffAt(block1.Number().Uint64(), params)
payload, err := mockService.StateDiffAt(block1.Number().Uint64(), parameters)
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit f468636

Please sign in to comment.