celo-org / celo-monorepo

Official repository for core projects comprising the Celo platform
https://celo.org
Apache License 2.0
697 stars 370 forks source link

ContractKit subscribe to pendingTransactions #9765

Closed kewlfft closed 1 year ago

kewlfft commented 2 years ago

Current Behavior

If I use

const kit = newKitFromWeb3(new Web3(provider))
kit.connection.web3.eth.subscribe('pendingTransactions',
    function(error, result){ if (error) console.error(error) }
).on("data", function(txHash){ console.log(txHash) })

I receive twice every transaction

Expected Behavior

receiving once every transaction

github-actions[bot] commented 1 year ago

This issue is stale and will be closed in 30 days without activity