Add cli test for slashing (#6102)

Reference: #5951
This commit is contained in:
SaReN
2020-05-05 15:51:35 +02:00
committed by GitHub
parent 4a28dd1645
commit 7e72e5b8a6
6 changed files with 115 additions and 1 deletions
+7
View File
@@ -18,6 +18,13 @@ import (
)
var (
TotalCoins = sdk.NewCoins(
sdk.NewCoin(Fee2Denom, sdk.TokensFromConsensusPower(2000000)),
sdk.NewCoin(FeeDenom, sdk.TokensFromConsensusPower(2000000)),
sdk.NewCoin(FooDenom, sdk.TokensFromConsensusPower(2000)),
sdk.NewCoin(Denom, sdk.TokensFromConsensusPower(300).Add(sdk.NewInt(12))), // add coins from inflation
)
StartCoins = sdk.NewCoins(
sdk.NewCoin(Fee2Denom, sdk.TokensFromConsensusPower(1000000)),
sdk.NewCoin(FeeDenom, sdk.TokensFromConsensusPower(1000000)),
+2 -1
View File
@@ -6,8 +6,9 @@ import (
"fmt"
"testing"
"github.com/cosmos/cosmos-sdk/tests/cli"
"github.com/stretchr/testify/require"
"github.com/cosmos/cosmos-sdk/tests/cli"
)
func TestCLIKeysAddMultisig(t *testing.T) {