2021-04-18 16:39:15 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDefaultConfig(t *testing.T) {
|
2021-06-29 17:02:21 +00:00
|
|
|
cfg := DefaultEVMConfig()
|
|
|
|
require.True(t, cfg.Enable)
|
|
|
|
require.Equal(t, cfg.RPCAddress, DefaultEVMAddress)
|
|
|
|
require.Equal(t, cfg.WsAddress, DefaultEVMWSAddress)
|
2021-04-18 16:39:15 +00:00
|
|
|
}
|