Commit 58ad9ccf authored by inphi's avatar inphi

test coverage for output root config

parent 9c1d6144
...@@ -56,6 +56,13 @@ func TestL2HeadRequired(t *testing.T) { ...@@ -56,6 +56,13 @@ func TestL2HeadRequired(t *testing.T) {
require.ErrorIs(t, err, ErrInvalidL2Head) require.ErrorIs(t, err, ErrInvalidL2Head)
} }
func TestL2OutputRootRequired(t *testing.T) {
config := validConfig()
config.L2OutputRoot = common.Hash{}
err := config.Check()
require.ErrorIs(t, err, ErrInvalidL2OutputRoot)
}
func TestL2ClaimRequired(t *testing.T) { func TestL2ClaimRequired(t *testing.T) {
config := validConfig() config := validConfig()
config.L2Claim = common.Hash{} config.L2Claim = common.Hash{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment