Skip to content

Commit

Permalink
chore: resolve the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SwatiEY committed Dec 15, 2023
1 parent faa12a4 commit 4484c55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
7 changes: 1 addition & 6 deletions merkle-tree/src/db/common/adminDbConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ else url = `mongodb://${host}:${port}`;

dbConnections.admin = mongoose.createConnection(`${url}/${databaseName}`, {
useNewUrlParser: true,
useCreateIndex: true,
authSource: "admin",
user: "admin",
pass: "admin",
useUnifiedTopology: true,
useFindAndModify: false
useCreateIndex: true,
});

const adminDbConnection = dbConnections.admin;
Expand Down
5 changes: 0 additions & 5 deletions merkle-tree/src/utils-web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ async function subscribeToEvent(
*/
// changed below for sepolia ws url - NOT TESTED ON ANY OTHER BLOCKCHAIN

// const eventJsonInterface = web3.utils._.find(
// contractInstance._jsonInterface, // eslint-disable-line no-underscore-dangle
// o => o.name === eventName && o.type === 'event',
// );

const eventJsonInterface = contractInstance._jsonInterface.find(o => o.name === eventName && o.type === 'event');

logger.info(`eventJsonInterface: ${JSON.stringify(eventJsonInterface, null
Expand Down

0 comments on commit 4484c55

Please sign in to comment.