mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-10-31 22:37:26 +00:00 
			
		
		
		
	fix tests
This commit is contained in:
		
							parent
							
								
									80b2dacbc2
								
							
						
					
					
						commit
						6c3360f102
					
				| @ -164,7 +164,6 @@ func (suite *EIP712TestSuite) SetupTest() { | ||||
| 			evmtypes.DefaultChainConfig(), // ChainConfig
 | ||||
| 			nil,                           // extraEIPs
 | ||||
| 			nil,                           // eip712AllowedMsgs
 | ||||
| 			nil,                           // enabledPrecompiles
 | ||||
| 		), | ||||
| 		nil, | ||||
| 	) | ||||
|  | ||||
| @ -120,16 +120,6 @@ func TestLegacyMsgAreAminoRegistered(t *testing.T) { | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // TestPrecompilesAreRegistered asserts that we have loaded the global precompile registry
 | ||||
| // by checking if at least one precompile is set
 | ||||
| //
 | ||||
| // If this test fails then has '_ "github.com/kava-labs/kava/precompile/registry"' been imported?
 | ||||
| func TestPrecompilesAreRegistered(t *testing.T) { | ||||
| 	assert.Greater(t, len(modules.RegisteredModules()), 0, | ||||
| 		"expected precompile registry to be imported and have at least one registered precompile", | ||||
| 	) | ||||
| } | ||||
| 
 | ||||
| // catchPanic returns the panic value of the passed function. The second return indicates if the function panicked.
 | ||||
| func catchPanic(f func()) (panicValue interface{}, didPanic bool) { | ||||
| 	didPanic = true | ||||
|  | ||||
| @ -72,7 +72,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { | ||||
| 				}, | ||||
| 				sdkmath.ZeroInt(), | ||||
| 			), | ||||
| 			"failed to validate precisebank genesis state: invalid balances: duplicate address kava1qy0xn7za", | ||||
| 			"failed to validate precisebank genesis state: invalid balances: duplicate address 0g1qy20a4yf", | ||||
| 		}, | ||||
| 		{ | ||||
| 			"invalid - module balance insufficient", | ||||
| @ -85,7 +85,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { | ||||
| 				// 2 leftover from 0.999... + 0.999...
 | ||||
| 				sdkmath.NewInt(2), | ||||
| 			), | ||||
| 			"module account balance does not match sum of fractional balances and remainder, balance is 0ukava but expected 2000000000000akava (2ukava)", | ||||
| 			"module account balance does not match sum of fractional balances and remainder, balance is 0ua0gi but expected 2000000000000neuron (2ua0gi)", | ||||
| 		}, | ||||
| 		{ | ||||
| 			"invalid - module balance excessive", | ||||
| @ -105,7 +105,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { | ||||
| 				}, | ||||
| 				sdkmath.NewInt(2), | ||||
| 			), | ||||
| 			"module account balance does not match sum of fractional balances and remainder, balance is 100ukava but expected 2000000000000akava (2ukava)", | ||||
| 			"module account balance does not match sum of fractional balances and remainder, balance is 100ua0gi but expected 2000000000000neuron (2ua0gi)", | ||||
| 		}, | ||||
| 		{ | ||||
| 			"sets module account", | ||||
|  | ||||
| @ -41,7 +41,7 @@ func (suite *Suite) SetupTest() { | ||||
| 	suite.Keeper = tApp.GetPrecisebankKeeper() | ||||
| 
 | ||||
| 	cdc := suite.App.AppCodec() | ||||
| 	coins := sdk.NewCoins(sdk.NewInt64Coin("ukava", 1000_000_000_000_000_000)) | ||||
| 	coins := sdk.NewCoins(sdk.NewInt64Coin("ua0gi", 1000_000_000_000_000_000)) | ||||
| 	authGS := app.NewFundedGenStateWithSameCoins(cdc, coins, []sdk.AccAddress{}) | ||||
| 
 | ||||
| 	gs := app.GenesisState{} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 0g-wh
						0g-wh