@@ -41,7 +41,7 @@ func makeGenesisState(t *testing.T, genTxs []auth.StdTx) GenesisState {
41
41
msg := msgs [0 ].(staking.MsgCreateValidator )
42
42
43
43
acc := auth .NewBaseAccountWithAddress (sdk .AccAddress (msg .ValidatorAddr ))
44
- acc .Coins = sdk.Coins {sdk .NewInt64Coin (bondDenom , 150 )}
44
+ acc .Coins = sdk.Coins {sdk .NewInt64Coin (defaultBondDenom , 150 )}
45
45
genAccs [i ] = NewGenesisAccount (& acc )
46
46
stakingData .Pool .NotBondedTokens = stakingData .Pool .NotBondedTokens .Add (sdk .NewInt (150 )) // increase the supply
47
47
}
@@ -55,7 +55,7 @@ func TestToAccount(t *testing.T) {
55
55
priv := ed25519 .GenPrivKey ()
56
56
addr := sdk .AccAddress (priv .PubKey ().Address ())
57
57
authAcc := auth .NewBaseAccountWithAddress (addr )
58
- authAcc .SetCoins (sdk.Coins {sdk .NewInt64Coin (bondDenom , 150 )})
58
+ authAcc .SetCoins (sdk.Coins {sdk .NewInt64Coin (defaultBondDenom , 150 )})
59
59
genAcc := NewGenesisAccount (& authAcc )
60
60
acc := genAcc .ToAccount ()
61
61
require .IsType (t , & auth.BaseAccount {}, acc )
@@ -104,7 +104,7 @@ func TestGaiaAppGenState(t *testing.T) {
104
104
func makeMsg (name string , pk crypto.PubKey ) auth.StdTx {
105
105
desc := staking .NewDescription (name , "" , "" , "" )
106
106
comm := staking.CommissionMsg {}
107
- msg := staking .NewMsgCreateValidator (sdk .ValAddress (pk .Address ()), pk , sdk .NewInt64Coin (bondDenom ,
107
+ msg := staking .NewMsgCreateValidator (sdk .ValAddress (pk .Address ()), pk , sdk .NewInt64Coin (defaultBondDenom ,
108
108
50 ), desc , comm , sdk .OneInt ())
109
109
return auth .NewStdTx ([]sdk.Msg {msg }, auth.StdFee {}, nil , "" )
110
110
}
@@ -151,7 +151,7 @@ func TestNewDefaultGenesisAccount(t *testing.T) {
151
151
addr := secp256k1 .GenPrivKeySecp256k1 ([]byte ("" )).PubKey ().Address ()
152
152
acc := NewDefaultGenesisAccount (sdk .AccAddress (addr ))
153
153
require .Equal (t , sdk .NewInt (1000 ), acc .Coins .AmountOf ("footoken" ))
154
- require .Equal (t , staking .TokensFromTendermintPower (150 ), acc .Coins .AmountOf (bondDenom ))
154
+ require .Equal (t , staking .TokensFromTendermintPower (150 ), acc .Coins .AmountOf (defaultBondDenom ))
155
155
}
156
156
157
157
func TestGenesisStateSanitize (t * testing.T ) {
0 commit comments