mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-11 00:18:06 -05:00
fixed travis & preston's feedback
Former-commit-id: 7939967ec2b19ff2dbec2c09d027e68a7c832c32 [formerly 6f7df3d11a74ba4d20ba169cc1ddf5a72f8d28dd] Former-commit-id: ff4c98fa06880688b7351c24260c9126ab3d1402
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user