@@ -17,11 +17,6 @@ func TestRunNewEVMConfigTestSuite(t *testing.T) {
1717 suite .Run (t , new (NewEVMConfigTestSuite ))
1818}
1919
20- func (s * NewEVMConfigTestSuite ) SetupSuite () {}
21- func (s * NewEVMConfigTestSuite ) TearDownSuite () {}
22- func (s * NewEVMConfigTestSuite ) SetupTest () {}
23- func (s * NewEVMConfigTestSuite ) TearDownTest () {}
24-
2520func (s * NewEVMConfigTestSuite ) Test_FailedDecode () {
2621 _ , err := chain .NewEVMConfig (map [string ]interface {}{
2722 "gasLimit" : "invalid" ,
@@ -63,11 +58,14 @@ func (s *NewEVMConfigTestSuite) Test_InvalidBlockConfirmation() {
6358
6459func (s * NewEVMConfigTestSuite ) Test_ValidConfig () {
6560 rawConfig := map [string ]interface {}{
66- "id" : 1 ,
67- "endpoint" : "ws://domain.com" ,
68- "name" : "evm1" ,
69- "from" : "address" ,
70- "bridge" : "bridgeAddress" ,
61+ "id" : 1 ,
62+ "endpoint" : "ws://domain.com" ,
63+ "name" : "evm1" ,
64+ "from" : "address" ,
65+ "bridge" : "bridgeAddress" ,
66+ "blockstorePath" : "./blockstore" ,
67+ "latest" : true ,
68+ "fresh" : true ,
7169 }
7270
7371 actualConfig , err := chain .NewEVMConfig (rawConfig )
@@ -77,9 +75,12 @@ func (s *NewEVMConfigTestSuite) Test_ValidConfig() {
7775 s .Nil (err )
7876 s .Equal (* actualConfig , chain.EVMConfig {
7977 GeneralChainConfig : chain.GeneralChainConfig {
80- Name : "evm1" ,
81- Endpoint : "ws://domain.com" ,
82- Id : id ,
78+ Name : "evm1" ,
79+ Endpoint : "ws://domain.com" ,
80+ Id : id ,
81+ BlockstorePath : "./blockstore" ,
82+ FreshStart : true ,
83+ LatestBlock : true ,
8384 },
8485 Bridge : "bridgeAddress" ,
8586 Erc20Handler : "" ,
0 commit comments