Skip to content

Commit

Permalink
Merge branch 'main' into add-default-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups authored Jul 16, 2024
2 parents 8b9f044 + a2258ed commit 8144951
Show file tree
Hide file tree
Showing 17 changed files with 8,987 additions and 3,333 deletions.
2 changes: 1 addition & 1 deletion cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ func ensureKeysExist(chains map[string]*relayer.Chain) error {
return nil
}

// MsgRegisterCounterpartyPayee registers the counterparty_payee
// registerCounterpartyCmd registers the counterparty_payee
func registerCounterpartyCmd(a *appState) *cobra.Command {
cmd := &cobra.Command{
Use: "register-counterparty chain_name channel_id port_id relay_addr counterparty_payee",
Expand Down
6 changes: 2 additions & 4 deletions relayer/chains/cosmos/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ func (cc *CosmosProvider) GetAccountWithHeight(_ client.Context, addr sdk.AccAdd

// EnsureExists returns an error if no account exists for the given address else nil.
func (cc *CosmosProvider) EnsureExists(clientCtx client.Context, addr sdk.AccAddress) error {
if _, err := cc.GetAccount(clientCtx, addr); err != nil {
return err
}
return nil
_, err := cc.GetAccount(clientCtx, addr)
return err
}

// GetAccountNumberSequence returns sequence and account number for the given address.
Expand Down
2 changes: 1 addition & 1 deletion relayer/chains/cosmos/fee_market_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
Key: "default",
ChainName: "osmosis",
ChainID: "osmosis-1",
RPCAddr: "https://rpc.osmosis.strange.love:443",
RPCAddr: "https://osmosis-rpc.polkachu.com:443",
AccountPrefix: "osmo",
KeyringBackend: "test",
DynamicGasPrice: true,
Expand Down
5 changes: 1 addition & 4 deletions relayer/chains/cosmos/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ func (cc *CosmosProvider) ListAddresses() (map[string]string, error) {

// DeleteKey removes a key from the keystore for the specified name.
func (cc *CosmosProvider) DeleteKey(name string) error {
if err := cc.Keybase.Delete(name); err != nil {
return err
}
return nil
return cc.Keybase.Delete(name)
}

// KeyExists returns true if a key with the specified name exists in the keystore, it returns false otherwise.
Expand Down
5 changes: 1 addition & 4 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1676,10 +1676,7 @@ func (cc *CosmosProvider) PrepareFactory(txf tx.Factory, signingKey string) (tx.

// Set the account number and sequence on the transaction factory and retry if fail
if err = retry.Do(func() error {
if err = txf.AccountRetriever().EnsureExists(cliCtx, from); err != nil {
return err
}
return err
return txf.AccountRetriever().EnsureExists(cliCtx, from)
}, rtyAtt, rtyDel, rtyErr); err != nil {
return txf, err
}
Expand Down
418 changes: 329 additions & 89 deletions relayer/chains/penumbra/core/component/auction/v1/auction.pb.go

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8144951

Please sign in to comment.