Skip to content

Commit

Permalink
more tests for cosmos signer
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jun 25, 2024
1 parent 5da1fd9 commit 53db202
Show file tree
Hide file tree
Showing 4 changed files with 1,838 additions and 130 deletions.
11 changes: 4 additions & 7 deletions cosmos/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,18 +362,15 @@ func NewMessageRelayer(config models.CosmosNetworkConfig, lastHealth *models.Run
}

multisigPk := multisig.NewLegacyAminoPubKey(int(config.MultisigThreshold), pks)
multisigAddress, err := common.Bech32FromBytes(config.Bech32Prefix, multisigPk.Address().Bytes())
if err != nil {
logger.WithError(err).Fatalf("Error creating multisig address")
}
multisigAddress, _ := common.Bech32FromBytes(config.Bech32Prefix, multisigPk.Address().Bytes())

if !strings.EqualFold(multisigAddress, config.MultisigAddress) {
logger.Fatalf("Multisig address does not match config")
}

client, err := cosmos.NewClient(config)
client, err := cosmosNewClient(config)
if err != nil {
logger.WithError(err).Errorf("Error creating cosmos client")
logger.WithError(err).Fatalf("Error creating cosmos client")
}

x := &CosmosMessageRelayerRunnable{
Expand All @@ -388,7 +385,7 @@ func NewMessageRelayer(config models.CosmosNetworkConfig, lastHealth *models.Run

logger: logger,

db: db.NewDB(),
db: dbNewDB(),
}

x.UpdateCurrentHeight()
Expand Down
Loading

0 comments on commit 53db202

Please sign in to comment.