Merge pull request #54 from planetmint/eckelj/define_unittest_chain_id

pinned the chain id for unit tests
This commit is contained in:
Julian Strobl 2023-07-31 08:07:21 +02:00 committed by GitHub
commit 229b649a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 12 deletions

View File

@ -46490,9 +46490,8 @@ paths:
type: string
ticker:
type: string
issued:
type: string
format: uint64
reissue:
type: boolean
amount:
type: string
format: uint64
@ -75335,9 +75334,8 @@ definitions:
type: string
ticker:
type: string
issued:
type: string
format: uint64
reissue:
type: boolean
amount:
type: string
format: uint64
@ -75387,9 +75385,8 @@ definitions:
type: string
ticker:
type: string
issued:
type: string
format: uint64
reissue:
type: boolean
amount:
type: string
format: uint64

2
go.mod
View File

@ -10,6 +10,7 @@ require (
github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.7.0
github.com/cosmos/cosmos-sdk v0.47.3
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/gogoproto v1.4.10
github.com/cosmos/ibc-go/v7 v7.1.0
github.com/golang/mock v1.6.0
@ -58,7 +59,6 @@ require (
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v0.20.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect

View File

@ -6,7 +6,6 @@ import (
"time"
tmdb "github.com/cometbft/cometbft-db"
tmrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
@ -51,7 +50,7 @@ func New(t *testing.T, configs ...Config) *Network {
func DefaultConfig() network.Config {
var (
encoding = app.MakeEncodingConfig()
chainID = "chain-" + tmrand.NewRand().Str(6)
chainID = "chain-foobarbaz"
)
return network.Config{
Codec: encoding.Marshaler,