mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-04-04 15:55:23 +00:00 
			
		
		
		
	change app name
This commit is contained in:
		
							parent
							
								
									4ab69f33db
								
							
						
					
					
						commit
						0f6f109f95
					
				| @ -26,7 +26,7 @@ import ( | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
| 	appName = "GaiaApp" | ||||
| 	appName = "kava" | ||||
| 	// DefaultKeyPass contains the default key password for genesis transactions
 | ||||
| 	DefaultKeyPass = "12345678" | ||||
| ) | ||||
|  | ||||
| @ -355,7 +355,7 @@ func TestFullGaiaSimulation(t *testing.T) { | ||||
| 		os.RemoveAll(dir) | ||||
| 	}() | ||||
| 	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt) | ||||
| 	require.Equal(t, "GaiaApp", app.Name()) | ||||
| 	require.Equal(t, "kava", app.Name()) | ||||
| 
 | ||||
| 	// Run randomized simulation
 | ||||
| 	_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app)) | ||||
| @ -389,7 +389,7 @@ func TestGaiaImportExport(t *testing.T) { | ||||
| 		os.RemoveAll(dir) | ||||
| 	}() | ||||
| 	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt) | ||||
| 	require.Equal(t, "GaiaApp", app.Name()) | ||||
| 	require.Equal(t, "kava", app.Name()) | ||||
| 
 | ||||
| 	// Run randomized simulation
 | ||||
| 	_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app)) | ||||
| @ -416,7 +416,7 @@ func TestGaiaImportExport(t *testing.T) { | ||||
| 		os.RemoveAll(newDir) | ||||
| 	}() | ||||
| 	newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt) | ||||
| 	require.Equal(t, "GaiaApp", newApp.Name()) | ||||
| 	require.Equal(t, "kava", newApp.Name()) | ||||
| 	var genesisState GenesisState | ||||
| 	err = app.cdc.UnmarshalJSON(appState, &genesisState) | ||||
| 	if err != nil { | ||||
| @ -479,7 +479,7 @@ func TestGaiaSimulationAfterImport(t *testing.T) { | ||||
| 		os.RemoveAll(dir) | ||||
| 	}() | ||||
| 	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt) | ||||
| 	require.Equal(t, "GaiaApp", app.Name()) | ||||
| 	require.Equal(t, "kava", app.Name()) | ||||
| 
 | ||||
| 	// Run randomized simulation
 | ||||
| 	stopEarly, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app)) | ||||
| @ -515,7 +515,7 @@ func TestGaiaSimulationAfterImport(t *testing.T) { | ||||
| 		os.RemoveAll(newDir) | ||||
| 	}() | ||||
| 	newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt) | ||||
| 	require.Equal(t, "GaiaApp", newApp.Name()) | ||||
| 	require.Equal(t, "kava", newApp.Name()) | ||||
| 	newApp.InitChain(abci.RequestInitChain{ | ||||
| 		AppStateBytes: appState, | ||||
| 	}) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 rhuairahrighairigh
						rhuairahrighairigh