From 0b7df21505d5b001b83210b1b4aa686c75cfd940 Mon Sep 17 00:00:00 2001 From: Terence Tsao Date: Tue, 24 Apr 2018 10:18:45 -0700 Subject: [PATCH] sharding: fixed lint Former-commit-id: a333578841a9058f1e7f298970fb1460ac5eefe1 [formerly 4dcb80be36a3d4d59e0c950e318ae277c792a725] Former-commit-id: 576570909a92d0858cae2fa2fd8f6bf7088f06f8 --- sharding/collator/collator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharding/collator/collator.go b/sharding/collator/collator.go index 8361ddd87..a706bf266 100644 --- a/sharding/collator/collator.go +++ b/sharding/collator/collator.go @@ -59,7 +59,7 @@ func checkSMCForCollator(c client.Client, head *types.Header) error { for s := int64(0); s < sharding.ShardCount; s++ { // Checks if we are an eligible collator according to the SMC for i := int64(0); i < sharding.NotaryCommitSize; s++ { - addr, err := c.SMCCaller().GetNotaryInCommittee(&bind.CallOpts{}, big.NewInt(s), i) + addr, err := c.SMCCaller().GetNotaryInCommittee(&bind.CallOpts{}, big.NewInt(s), big.NewInt(i)) if err != nil { return err