update latest web3

pull/3951/head
Oleksii Kosynskyi 1 year ago
parent e7890b1a34
commit 3a34f5c6eb
No known key found for this signature in database
GPG Key ID: B4A8D3CCE22EA65E
  1. 2
      libs/ghaction-helper/package.json
  2. 2
      libs/remix-analyzer/package.json
  3. 2
      libs/remix-astwalker/package.json
  4. 2
      libs/remix-debug/package.json
  5. 2
      libs/remix-lib/package.json
  6. 9
      libs/remix-lib/src/execution/logsManager.ts
  7. 3
      libs/remix-simulator/package.json
  8. 2
      libs/remix-solidity/package.json
  9. 2
      libs/remix-tests/package.json
  10. 2
      libs/remix-ws-templates/package.json

@ -28,7 +28,7 @@
"@remix-project/remix-simulator": "^0.2.31",
"chai": "^4.3.7",
"ethers": "^5.7.2",
"web3": "^4.1.0"
"web3": "^4.1.1"
},
"types": "./src/index.d.ts",
"gitHead": "b11b11623729f741a5ccd387bc60dc5db41f28ab"

@ -31,7 +31,7 @@
"ethers": "^5.4.2",
"ethjs-util": "^0.1.6",
"string-similarity": "^4.0.4",
"web3": "^4.1.0"
"web3": "^4.1.1"
},
"publishConfig": {
"access": "public"

@ -47,7 +47,7 @@
"tape": "^4.10.1",
"ts-node": "^8.0.3",
"typescript": "^3.4.3",
"web3": "^4.1.0"
"web3": "^4.1.1"
},
"devDependencies": {
"tap-spec": "^5.0.0"

@ -41,7 +41,7 @@
"merge": "^2.1.1",
"string-similarity": "^4.0.4",
"time-stamp": "^2.2.0",
"web3": "^4.1.0"
"web3": "^4.1.1"
},
"devDependencies": {
"@babel/core": "^7.4.5",

@ -25,7 +25,7 @@
"from-exponential": "1.1.1",
"solc": "^0.7.4",
"string-similarity": "^4.0.4",
"web3": "^4.1.0",
"web3": "^4.1.1",
"web3-validator": "^2.0.0"
},
"devDependencies": {

@ -19,11 +19,10 @@ export class LogsManager {
checkBlock (blockNumber, block, web3) {
eachOf(block.transactions, (tx: any, i, next) => {
const txHash = '0x' + tx.hash().toString('hex')
const cb = (_error, receipt) => {
web3.eth.getTransactionReceipt(txHash, (_error, receipt) => {
for (const log of receipt.logs) {
this.oldLogs.push({ type: 'block', blockNumber, block, tx, log, txNumber: i })
const subscriptions = this.getSubscriptionsFor({ type: 'block', blockNumber, block, tx, log })
for (const subscriptionId of subscriptions) {
const result = {
logIndex: '0x1', // 1
@ -45,11 +44,7 @@ export class LogsManager {
this.transmit(response)
}
}
}
const res = web3.eth.getTransactionReceipt(txHash,cb)
if(res && typeof res.then === 'function'){
res.then((receipt) => cb(null, receipt)).catch(err => cb(err,null))
}
})
}, (_err) => {
})
}

@ -36,7 +36,8 @@
"merge": "^1.2.0",
"string-similarity": "^4.0.4",
"time-stamp": "^2.0.0",
"web3": "^4.1.0"
"web3": "^4.1.1",
"web3-utils": "^4.0.5"
},
"devDependencies": {
"@babel/core": "^7.4.5",

@ -28,7 +28,7 @@
"semver": "^6.3.0",
"solc": "^0.7.4",
"string-similarity": "^4.0.4",
"web3": "^4.1.0",
"web3": "^4.1.1",
"webworkify-webpack": "^2.1.5"
},
"devDependencies": {

@ -62,7 +62,7 @@
"string-similarity": "^4.0.4",
"time-stamp": "^2.2.0",
"tslib": "^2.3.0",
"web3": "^4.1.0",
"web3": "^4.1.1",
"winston": "^3.0.0"
},
"devDependencies": {

@ -22,7 +22,7 @@
"@openzeppelin/contracts": "^4.7.3",
"@openzeppelin/wizard": "^0.1.1",
"ethers": "^5.4.2",
"web3": "^4.1.0"
"web3": "^4.1.1"
},
"gitHead": "b11b11623729f741a5ccd387bc60dc5db41f28ab"
}

Loading…
Cancel
Save