[test] Switch const PubKey to hex version

This aligns with the return values of `sample.KeyPair()`.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2023-07-20 10:43:42 +02:00
parent d287f2ff94
commit fd136b6219
No known key found for this signature in database
GPG Key ID: E0A8F9AD733499A7
2 changed files with 2 additions and 5 deletions

View File

@ -48,9 +48,6 @@ func (s *E2ETestSuite) SetupSuite() {
kb := val.ClientCtx.Keyring
account, err := kb.NewAccount(sample.Name, sample.Mnemonic, keyring.DefaultBIP39Passphrase, sdk.FullFundraiserPath, hd.Secp256k1)
s.Require().NoError(err)
pk, err := account.GetPubKey()
pkHex := hex.EncodeToString(pk.Bytes())
s.Require().NoError(err)
addr, _ := account.GetAddress()
@ -67,7 +64,7 @@ func (s *E2ETestSuite) SetupSuite() {
s.Require().NoError(s.network.WaitForNextBlock())
machine := sample.Machine("machine", pkHex)
machine := sample.Machine(sample.Name, sample.PubKey)
machineJSON, err := json.Marshal(&machine)
s.Require().NoError(err)

View File

@ -15,7 +15,7 @@ import (
const Mnemonic = "helmet hedgehog lab actor weekend elbow pelican valid obtain hungry rocket decade tower gallery fit practice cart cherry giggle hair snack glance bulb farm"
// PubKey corresponding public key to sample mnemonic
const PubKey = "AjKN6HiWucu1EBwzX0ACnkvomJiLRwq79oPxoLMY1zRw"
const PubKey = "02328de87896b9cbb5101c335f40029e4be898988b470abbf683f1a0b318d73470"
// Name is the name of the sample machine to use in tests
const Name = "machine"