mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
[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:
parent
d287f2ff94
commit
fd136b6219
@ -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)
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user