(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestDporConfig_String(t *testing.T) { |
| 85 | contracts := map[string]common.Address{} |
| 86 | contracts["t1"] = common.HexToAddress("0x01") |
| 87 | contracts["t2"] = common.HexToAddress("0x02") |
| 88 | dc := &DporConfig{Contracts: contracts} |
| 89 | assert.Equal(t, "dpor", dc.String()) |
| 90 | } |
| 91 | |
| 92 | func TestChainConfigString(t *testing.T) { |
| 93 | cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(10)} |