Unverified Commit b2c7c5c6 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1605 from Tenderly/plugin-txlistener-web3

Transaction broadcast support to other plugins for web3
parents 526fcf24 a8c369c7
'use strict' 'use strict'
var remixLib = require('remix-lib') var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager var EventManager = remixLib.EventManager
var executionContext = require('../../execution-context')
const PluginAPI = require('./pluginAPI') const PluginAPI = require('./pluginAPI')
/** /**
* Register and Manage plugin: * Register and Manage plugin:
...@@ -112,7 +111,6 @@ module.exports = class PluginManager { ...@@ -112,7 +111,6 @@ module.exports = class PluginManager {
}) })
txlistener.event.register('newTransaction', (tx) => { txlistener.event.register('newTransaction', (tx) => {
if (executionContext.getProvider() !== 'vm') return
self.broadcast(JSON.stringify({ self.broadcast(JSON.stringify({
action: 'notification', action: 'notification',
key: 'txlistener', key: 'txlistener',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment