Skip to content

Commit

Permalink
refactor: cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Jun 10, 2024
1 parent 5e49042 commit 8a6523e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/test/consistent_apphash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"github.com/tendermint/tendermint/proto/tendermint/version"
)

type sdkTx struct {
type SdkTx struct {
sdkMsgs []sdk.Msg
txOptions []user.TxOption
}

type blobTx struct {
type BlobTx struct {
author string
blobs []*blob.Blob
txOptions []user.TxOption
Expand Down Expand Up @@ -59,7 +59,7 @@ func TestConsistentAppHash(t *testing.T) {
}

// Apply genesis state to the app.
_, _, err = testutil.ApplyGenesisState(testApp, pubKeys, 1_000_000_000, app.DefaultInitialConsensusParams())
_, _, err = testutil.SetupDeterministicGenesisState(testApp, pubKeys, 1_000_000_000, app.DefaultInitialConsensusParams())
require.NoError(t, err)

// Query keyring account infos
Expand All @@ -79,7 +79,7 @@ func TestConsistentAppHash(t *testing.T) {
amount := sdk.NewCoins(sdk.NewCoin(app.BondDenom, sdk.NewIntFromUint64(1000)))

// Create an SDK Tx
sdkTx := sdkTx{
sdkTx := SdkTx{
sdkMsgs: []sdk.Msg{
banktypes.NewMsgSend(signer.Account(accountNames[0]).Address(),
signer.Account(accountNames[1]).Address(),
Expand All @@ -89,7 +89,7 @@ func TestConsistentAppHash(t *testing.T) {
}

// Create a Blob Tx
blobTx := blobTx{
blobTx := BlobTx{
author: accountNames[2],
blobs: []*blob.Blob{blob.New(fixedNamespace(), []byte{1}, appconsts.DefaultShareVersion)},
txOptions: blobfactory.DefaultTxOpts(),
Expand Down

0 comments on commit 8a6523e

Please sign in to comment.