Skip to content

Commit

Permalink
fix yoda building
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed May 4, 2024
1 parent 6555026 commit e76f036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yoda/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func signAndBroadcast(
return "", err
}

err = tx.Sign(txf, key.Name, txb, true)
err = tx.Sign(context.Background(), txf, key.Name, txb, true)
if err != nil {
return "", err
}
Expand Down
3 changes: 2 additions & 1 deletion yoda/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/cometbft/cometbft/crypto/tmhash"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/tx/signing"

"github.com/ODIN-PROTOCOL/odin-core/x/oracle/types"
)
Expand Down Expand Up @@ -185,7 +186,7 @@ func handleRawRequest(
}

vmsg := types.NewRequestVerification(cfg.ChainID, c.validator, id, req.externalID, req.dataSourceID)
sig, pubkey, err := kb.Sign(key.Name, vmsg.GetSignBytes())
sig, pubkey, err := kb.Sign(key.Name, vmsg.GetSignBytes(), signing.SignMode_SIGN_MODE_DIRECT)
if err != nil {
l.Error(":skull: Failed to sign verify message: %s", c, err.Error())
processingResultCh <- processingResult{
Expand Down

0 comments on commit e76f036

Please sign in to comment.