fixed travis & preston's feedback

Former-commit-id: 7939967ec2b19ff2dbec2c09d027e68a7c832c32 [formerly 6f7df3d11a74ba4d20ba169cc1ddf5a72f8d28dd]
Former-commit-id: ff4c98fa06880688b7351c24260c9126ab3d1402
This commit is contained in:
Terence Tsao
2018-03-08 18:05:39 -08:00
parent af7124e91f
commit aa5bb73045
2 changed files with 2 additions and 5 deletions

View File

@@ -98,11 +98,8 @@ func isAccountInCollatorPool(c collator) (bool, error) {
// Checks if our deposit has gone through according to the SMC
b, err := c.SMCCaller().IsCollatorDeposited(&bind.CallOpts{}, account.Address)
if err != nil {
return false, err
}
return b, nil
return b, err
}
// submitCollation interacts with the SMC directly to add a collation header

View File

@@ -81,7 +81,7 @@ func (c FakeContractCaller) CallContract(ctx context.Context, call ethereum.Call
return c.callContractBytes, c.callContractError
}
func TestcheckSMCForCollator(t *testing.T) {
func TestCheckSMCForCollator(t *testing.T) {
tests := []struct {
Name string
Head *types.Header