Merge pull request #1036 from CosmWasm/1019-make_field_pub

Make SenderPrivKey field public
This commit is contained in:
Alexander Peters
2022-10-06 13:51:46 +02:00
committed by GitHub

View File

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