Make SenderPrivKey field public

This commit is contained in:
Pino' Surace
2022-10-06 12:46:50 +02:00
parent f95e7c02b3
commit 5d21ad91f0

View File

@@ -60,7 +60,7 @@ type TestChain struct {
Vals *tmtypes.ValidatorSet Vals *tmtypes.ValidatorSet
Signers []tmtypes.PrivValidator Signers []tmtypes.PrivValidator
senderPrivKey cryptotypes.PrivKey SenderPrivKey cryptotypes.PrivKey
SenderAccount authtypes.AccountI SenderAccount authtypes.AccountI
PendingSendPackets []channeltypes.Packet PendingSendPackets []channeltypes.Packet
@@ -125,7 +125,7 @@ func NewTestChain(t *testing.T, coord *Coordinator, chainID string, opts ...wasm
Codec: wasmApp.AppCodec(), Codec: wasmApp.AppCodec(),
Vals: valSet, Vals: valSet,
Signers: signers, Signers: signers,
senderPrivKey: senderPrivKey, SenderPrivKey: senderPrivKey,
SenderAccount: acc, SenderAccount: acc,
} }
@@ -251,7 +251,7 @@ func (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*sdk.Result, error) {
chain.ChainID, chain.ChainID,
[]uint64{chain.SenderAccount.GetAccountNumber()}, []uint64{chain.SenderAccount.GetAccountNumber()},
[]uint64{chain.SenderAccount.GetSequence()}, []uint64{chain.SenderAccount.GetSequence()},
true, true, chain.senderPrivKey, true, true, chain.SenderPrivKey,
) )
if err != nil { if err != nil {
return nil, err return nil, err