More testcase fixes
This commit is contained in:
parent
06adc691d2
commit
c667c5690a
|
@ -55,6 +55,7 @@ func ExamplePrintRegisteredTypes() {
|
||||||
//| PrivKeyLedgerSecp256k1 | tendermint/PrivKeyLedgerSecp256k1 | 0x10CAB393 | variable | |
|
//| PrivKeyLedgerSecp256k1 | tendermint/PrivKeyLedgerSecp256k1 | 0x10CAB393 | variable | |
|
||||||
//| PubKeyEd25519 | tendermint/PubKeyEd25519 | 0x1624DE64 | 0x20 | |
|
//| PubKeyEd25519 | tendermint/PubKeyEd25519 | 0x1624DE64 | 0x20 | |
|
||||||
//| PubKeySecp256k1 | tendermint/PubKeySecp256k1 | 0xEB5AE987 | 0x21 | |
|
//| PubKeySecp256k1 | tendermint/PubKeySecp256k1 | 0xEB5AE987 | 0x21 | |
|
||||||
|
//| PubKeyMultisigThreshold | tendermint/PubKeyMultisigThreshold | 0x22C1F7E2 | variable | |
|
||||||
//| PrivKeyEd25519 | tendermint/PrivKeyEd25519 | 0xA3288910 | 0x40 | |
|
//| PrivKeyEd25519 | tendermint/PrivKeyEd25519 | 0xA3288910 | 0x40 | |
|
||||||
//| PrivKeySecp256k1 | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | 0x20 | |
|
//| PrivKeySecp256k1 | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | 0x20 | |
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,9 +53,9 @@ func TestInitGenesis(t *testing.T) {
|
||||||
require.Equal(t, sdk.Bonded, resVal.Status)
|
require.Equal(t, sdk.Bonded, resVal.Status)
|
||||||
require.Equal(t, int16(1), resVal.BondIntraTxCounter)
|
require.Equal(t, int16(1), resVal.BondIntraTxCounter)
|
||||||
|
|
||||||
abcivals := make([]abci.Validator, len(vals))
|
abcivals := make([]abci.ValidatorUpdate, len(vals))
|
||||||
for i, val := range validators {
|
for i, val := range validators {
|
||||||
abcivals[i] = sdk.ABCIValidator(val)
|
abcivals[i] = sdk.ABCIValidatorUpdate(val)
|
||||||
}
|
}
|
||||||
|
|
||||||
require.Equal(t, abcivals, vals)
|
require.Equal(t, abcivals, vals)
|
||||||
|
@ -92,9 +92,9 @@ func TestInitGenesisLargeValidatorSet(t *testing.T) {
|
||||||
vals, err := InitGenesis(ctx, keeper, genesisState)
|
vals, err := InitGenesis(ctx, keeper, genesisState)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
abcivals := make([]abci.Validator, 100)
|
abcivals := make([]abci.ValidatorUpdate, 100)
|
||||||
for i, val := range validators[:100] {
|
for i, val := range validators[:100] {
|
||||||
abcivals[i] = sdk.ABCIValidator(val)
|
abcivals[i] = sdk.ABCIValidatorUpdate(val)
|
||||||
}
|
}
|
||||||
|
|
||||||
require.Equal(t, abcivals, vals)
|
require.Equal(t, abcivals, vals)
|
||||||
|
|
Loading…
Reference in New Issue