Skip to content

Commit

Permalink
Remove unused config.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins committed Dec 8, 2021
1 parent d275c56 commit aaeba35
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 71 deletions.
39 changes: 0 additions & 39 deletions client/asset/eth/config.go

This file was deleted.

4 changes: 0 additions & 4 deletions client/asset/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ var (
}
)

// Check that Driver implements asset.Driver.
var _ asset.Driver = (*Driver)(nil)
var _ asset.Creator = (*Driver)(nil)

// Driver implements asset.Driver.
type Driver struct{}

Expand Down
28 changes: 0 additions & 28 deletions client/asset/eth/eth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,34 +172,6 @@ func (n *testNode) transactionConfirmations(context.Context, common.Hash) (uint3
return 0, nil
}

func TestLoadConfig(t *testing.T) {
tests := []struct {
name string
network dex.Network
wantErr bool
}{{
name: "ok",
network: dex.Simnet,
}, {
name: "mainnet not allowed",
network: dex.Mainnet,
wantErr: true,
}}

for _, test := range tests {
_, err := loadConfig(nil, test.network)
if test.wantErr {
if err == nil {
t.Fatalf("expected error for test %v", test.name)
}
continue
}
if err != nil {
t.Fatalf("unexpected error for test %v: %v", test.name, err)
}
}
}

func TestCheckForNewBlocks(t *testing.T) {
header0 := &types.Header{Number: new(big.Int)}
block0 := types.NewBlockWithHeader(header0)
Expand Down

0 comments on commit aaeba35

Please sign in to comment.