From 2a053ab9c5accbdfcc74a8ef967a83a3ab85a62b Mon Sep 17 00:00:00 2001 From: Zhang Junyu Date: Fri, 21 Jan 2022 17:14:31 +0800 Subject: [PATCH 1/2] ethers --- src/eth/pending.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eth/pending.ts b/src/eth/pending.ts index 02e12c5..a7e4609 100644 --- a/src/eth/pending.ts +++ b/src/eth/pending.ts @@ -5,6 +5,7 @@ import { L1ClientRole } from "delphinus-deployment/src/types"; const BridgeJSON = require("solidity/build/contracts/Bridge.json"); async function main() { +/* const config = await getConfigByChainName( L1ClientRole.Monitor, process.argv[2] @@ -22,6 +23,8 @@ async function main() { await etracker.subscribePendingEvents().then((v) => { console.log("start subscribe pending events:"); }); +*/ + throw Error("unimplement"); } main(); From 3aafb7955d71055dbe16fec03474d5312bbe76e0 Mon Sep 17 00:00:00 2001 From: Zhang Junyu Date: Fri, 21 Jan 2022 17:57:15 +0800 Subject: [PATCH 2/2] ethers --- src/eth/monitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eth/monitor.ts b/src/eth/monitor.ts index 09d84a7..98293fd 100644 --- a/src/eth/monitor.ts +++ b/src/eth/monitor.ts @@ -91,7 +91,7 @@ async function main() { await withEventTracker( config.deviceId, BridgeJSON, - config.wsSource, + config.rpcSource, config.monitorAccount, config.mongodbUrl, (eventTracker: EventTracker) => {