Skip to content

Commit

Permalink
Fix compatibility with heminetwork changes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jul 23, 2024
1 parent e565b10 commit 2d8c020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ func (c *btcTxConfirmations) Run(input []byte, blockContext common.Hash) ([]byte
log.Warn("Unable to lookup tx confirmations by Txid; unable to convert txid %x to chainhash!", "txid", txid, "err", err)
}

_, blockHash, err := TBCFullNode.TxByTxId(context.Background(), &txHash)
_, blockHash, err := TBCFullNode.TxById(context.Background(), &txHash)
if err != nil {
log.Error("Unable to lookup transaction confirmations by txid", "txid", txid, "err", err)
return nil, err
Expand Down Expand Up @@ -1295,7 +1295,7 @@ func (c *btcTxByTxid) Run(input []byte, blockContext common.Hash) ([]byte, error
log.Warn("Unable to lookup tx by txid; unable to convert txid %x to chainhash", "txid", txid)
}

tx, block, err := TBCFullNode.TxByTxId(context.Background(), &ch)
tx, block, err := TBCFullNode.TxById(context.Background(), &ch)
if err != nil || tx == nil {
log.Error("Unable to lookup tx by txid", "txid", fmt.Sprintf("%x", txid))
return nil, nil
Expand Down Expand Up @@ -1343,7 +1343,7 @@ func (c *btcTxByTxid) Run(input []byte, blockContext common.Hash) ([]byte, error
log.Warn("Unable to lookup Tx by Txid; unable to convert txid %x to chainhash!", "txid", txid)
return nil, nil
}
sourceTx, _, err := TBCFullNode.TxByTxId(context.Background(), &pih)
sourceTx, _, err := TBCFullNode.TxById(context.Background(), &pih)

if err != nil {
log.Warn("unable to lookup input transaction",
Expand Down

0 comments on commit 2d8c020

Please sign in to comment.