mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
update pubkey
This commit is contained in:
parent
5473e9d8f4
commit
1cd1b1e259
@ -397,8 +397,9 @@ func TestKavaCLICreateValidator(t *testing.T) {
|
|||||||
barAddr := f.KeyAddress(keyBar)
|
barAddr := f.KeyAddress(keyBar)
|
||||||
barVal := sdk.ValAddress(barAddr)
|
barVal := sdk.ValAddress(barAddr)
|
||||||
|
|
||||||
consPubKey, err := sdk.Bech32ifyPubKey(sdk.Bech32PubKeyTypeAccPub, ed25519.GenPrivKey().PubKey())
|
consPubKey, err := sdk.Bech32ifyPubKey(sdk.Bech32PubKeyTypeValPub, ed25519.GenPrivKey().PubKey())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
require.NotEmpty(t, consPubKey)
|
||||||
|
|
||||||
sendTokens := sdk.TokensFromConsensusPower(10)
|
sendTokens := sdk.TokensFromConsensusPower(10)
|
||||||
f.TxSend(keyFoo, barAddr, sdk.NewCoin(denom, sendTokens), "-y")
|
f.TxSend(keyFoo, barAddr, sdk.NewCoin(denom, sendTokens), "-y")
|
||||||
|
@ -66,7 +66,7 @@ func init() {
|
|||||||
// set the address prefixes
|
// set the address prefixes
|
||||||
config := sdk.GetConfig()
|
config := sdk.GetConfig()
|
||||||
app.SetBech32AddressPrefixes(config)
|
app.SetBech32AddressPrefixes(config)
|
||||||
config.Seal()
|
// config.Seal()
|
||||||
}
|
}
|
||||||
|
|
||||||
//___________________________________________________________________________________
|
//___________________________________________________________________________________
|
||||||
|
Loading…
Reference in New Issue
Block a user