Skip to content

Commit

Permalink
begin
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Sep 1, 2023
1 parent 2f3d0bc commit 75f8d84
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
25 changes: 21 additions & 4 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
version: v1
deps:
- buf.build/penumbra-zone/penumbra
- buf.build/cosmos/cosmos-sdk
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
- buf.build/googleapis/googleapis
- buf.build/cosmos/cosmos-sdk:aa25660f4ff746388669ce36b3778442
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
- buf.build/cosmos/gogo-proto:a14993478f40695898ed8a86931094b6656e8a5d
- buf.build/googleapis/googleapis:8d7204855ec14631a499bd7393ce1970
- buf.build/cosmos/ics23:b1abd8678aab07165efd453c96796a179eb3131f

breaking:
use:
- FILE
lint:
use:
- DEFAULT
- COMMENTS
- FILE_LOWER_SNAKE_CASE
except:
- UNARY_RPC
- COMMENT_FIELD
- SERVICE_SUFFIX
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
5 changes: 3 additions & 2 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (

errorsmod "cosmossdk.io/errors"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/store/rootmulti"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand Down Expand Up @@ -623,7 +624,7 @@ func (cc *CosmosProvider) buildMessages(
return nil, 0, sdk.Coins{}, err
}

if err = tx.Sign(txf, txSignerKey, txb, false); err != nil {
if err = tx.Sign(ctx, txf, txSignerKey, txb, false); err != nil {
return nil, 0, sdk.Coins{}, err
}

Expand Down Expand Up @@ -1677,7 +1678,7 @@ func (cc *CosmosProvider) AdjustEstimatedGas(gasUsed uint64) (uint64, error) {
func (cc *CosmosProvider) SetWithExtensionOptions(txf tx.Factory) (tx.Factory, error) {
extOpts := make([]*types.Any, 0, len(cc.PCfg.ExtensionOptions))
for _, opt := range cc.PCfg.ExtensionOptions {
max, ok := sdk.NewIntFromString(opt.Value)
max, ok := sdkmath.NewIntFromString(opt.Value)
if !ok {
return txf, fmt.Errorf("invalid opt value")
}
Expand Down

0 comments on commit 75f8d84

Please sign in to comment.