Skip to content

Commit

Permalink
cr fix: create chain with custom account
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Nov 5, 2024
1 parent 79af94b commit fdf4ca9
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 116 deletions.
4 changes: 2 additions & 2 deletions tests/interchain/chainsuite/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (c *Chain) CreateConsumer(ctx context.Context, msg *providertypes.MsgCreate
return consumerId, err
}

func (c *Chain) UpdateConsumer(ctx context.Context, msg *providertypes.MsgUpdateConsumer, keyName string) error {
func (c *Chain) UpdateConsumer(ctx context.Context, msg *providertypes.MsgUpdateConsumer, ownerKeyName string) error {
content, err := json.Marshal(msg)
if err != nil {
return err
Expand All @@ -261,7 +261,7 @@ func (c *Chain) UpdateConsumer(ctx context.Context, msg *providertypes.MsgUpdate

filePath := path.Join(c.GetNode().HomeDir(), jsonFile)

_, err = c.GetNode().ExecTx(ctx, keyName, "provider", "update-consumer", filePath)
_, err = c.GetNode().ExecTx(ctx, ownerKeyName, "provider", "update-consumer", filePath)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion tests/interchain/chainsuite/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
ChainSpawnWait = 155 * time.Second
CosmosChainType = "cosmos"
GovModuleAddress = "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn"
TestWalletsNumber = 5 // Ensure that test accounts are used in a way that maintains the mutual independence of tests
TestWalletsNumber = 15 // Ensure that test accounts are used in a way that maintains the mutual independence of tests
)

func DefaultConfigToml() testutil.Toml {
Expand Down
Loading

0 comments on commit fdf4ca9

Please sign in to comment.