Skip to content

Commit

Permalink
add updateClientAndRecvPacket to combos
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 19, 2023
1 parent b989d94 commit 849fdad
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.

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

13 changes: 11 additions & 2 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,13 @@ var methodCombos = []*methodCombo{
},
NewMethodName: "updateClientAndChannelOpenConfirm",
},
{
Methods: []string{
"updateClient",
"recvPacket",
},
NewMethodName: "updateClientAndRecvPacket",
},
}

func packData(method string, msgs ...sdk.Msg) ([]byte, error) {
Expand Down Expand Up @@ -2090,9 +2097,11 @@ func (cc *CosmosProvider) calculateEvmGas(ctx context.Context, arg *evmtypes.Tra
if err = json.Unmarshal(data, &res); err != nil {
return err
}
if res.Error == nil {
gas = uint64(res.Result)
if res.Error != nil {
return fmt.Errorf("res err %s", res.Error.Message)
}
fmt.Println("mm-calculateEvmGas", res.Result)
gas = uint64(res.Result)
return nil
}, retry.Context(ctx), rtyAtt, rtyDel, rtyErr); err != nil {
return 0, err
Expand Down

0 comments on commit 849fdad

Please sign in to comment.