Skip to content

Commit

Permalink
Using latest version of bridge-transaction-parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Sep 17, 2024
1 parent b1143c7 commit c2ca414
Show file tree
Hide file tree
Showing 5 changed files with 3,732 additions and 2,835 deletions.
8 changes: 4 additions & 4 deletions lib/rsk-utils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const expect = require('chai').expect;
const { getBridgeState } = require('@rsksmart/bridge-state-data-parser');
const { getBridge } = require('./precompiled-abi-forks-util');
const hopBridgeTxParser = require('bridge-transaction-parser-hop400');
const fingerrootBridgeTxParser = require('bridge-transaction-parser');
const BridgeTransactionParser = require('bridge-transaction-parser-lovell700');
const BridgeTransactionParser = require('@rsksmart/bridge-transaction-parser');
const { getRskTransactionHelpers } = require('../lib/rsk-tx-helper-provider');
const { wait, retryWithCheck, removePrefix0x } = require('./utils');
const { waitForBitcoinMempoolToGetTxs } = require('./btc-utils');
Expand Down Expand Up @@ -414,11 +412,13 @@ const findEventInBlock = async (rskTxHelper, eventName, fromBlockHashOrBlockNumb

const findBridgeTransactionsInThisBlock = async (web3Client, blockHashOrBlockNumber) => {

const bridgeTxParser = new BridgeTransactionParser(web3Client);

// TODO: uncomment this when lovell700 is active.
// const bridgeTransactionParser = new BridgeTransactionParser(web3Client);
// return bridgeTransactionParser.getBridgeTransactionsInThisBlock(blockHashOrBlockNumber);

return fingerrootBridgeTxParser.getBridgeTransactionsInThisBlock(web3Client, blockHashOrBlockNumber);
return bridgeTxParser.getBridgeTransactionsInThisBlock(web3Client, blockHashOrBlockNumber);
}

/**
Expand Down
Loading

0 comments on commit c2ca414

Please sign in to comment.