Merge pull request #2691 from ethereum/bumpRemixLib

Bump remix lib
pull/5370/head
yann300 5 years ago committed by GitHub
commit 00ab2081be
  1. 1484
      package-lock.json
  2. 12
      package.json
  3. 15
      src/app/tabs/staticanalysis/staticAnalysisView.js
  4. 8
      src/app/tabs/test-tab.js
  5. 14
      test-browser/tests/recorder.js

1484
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -55,13 +55,13 @@
"npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.0.2",
"onchange": "^3.2.1",
"remix-analyzer": "0.3.23",
"remix-debug": "0.3.27",
"remix-lib": "0.4.23",
"remix-solidity": "0.3.26",
"remix-analyzer": "0.5.0-beta.2",
"remix-debug": "0.3.28",
"remix-lib": "0.4.24",
"remix-simulator": "0.1.9-beta.2",
"remix-solidity": "0.3.27",
"remix-tabs": "1.0.48",
"remix-tests": "0.1.29",
"remix-simulator": "0.1.9-beta.1",
"remix-tests": "0.1.30",
"remixd": "0.1.8-alpha.10",
"request": "^2.83.0",
"rimraf": "^2.6.1",

@ -182,11 +182,16 @@ staticAnalysisView.prototype.renderModules = function () {
module.exports = staticAnalysisView
/**
* @dev Process & categorize static analysis modules to show them on UI
* @param arr list of static analysis modules received from remix-analyzer module
*/
function preProcessModules (arr) {
return arr.map((item, i) => {
item['_index'] = i
item.categoryDisplayName = item.category.displayName
item.categoryId = item.category.id
return item
return arr.map((Item, i) => {
const itemObj = new Item()
itemObj['_index'] = i
itemObj.categoryDisplayName = itemObj.category.displayName
itemObj.categoryId = itemObj.category.id
return itemObj
})
}

@ -121,8 +121,12 @@ module.exports = class TestTab extends ViewPlugin {
updateFinalResult (_errors, result, filename) {
this.testsSummary.hidden = false
if (_errors) {
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
if (_errors && _errors.errors) {
_errors.errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
return
} else if (_errors && !_errors.errors && !Array.isArray(_errors)) {
// To track error like this: https://github.com/ethereum/remix/pull/1438
this.renderer.error(_errors.formattedMessage || _errors.message, this.testsSummary, {type: 'error'})
return
}
this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)

@ -70,7 +70,7 @@ var sources = [{'browser/testRecorder.sol': {content: `contract testRecorder {
var records = `{
"accounts": {
"account{3}": "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"
"account{10}": "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"
},
"linkReferences": {
"testLib": "created{1512830014773}"
@ -87,7 +87,7 @@ var records = `{
"linkReferences": {},
"inputs": "()",
"type": "constructor",
"from": "account{3}"
"from": "account{10}"
}
},
{
@ -113,7 +113,7 @@ var records = `{
"name": "",
"type": "constructor",
"inputs": "(uint256)",
"from": "account{3}"
"from": "account{10}"
}
},
{
@ -129,7 +129,7 @@ var records = `{
"name": "set",
"inputs": "(uint256,address)",
"type": "function",
"from": "account{3}"
"from": "account{10}"
}
}
],
@ -228,7 +228,7 @@ var records = `{
var scenario = {
'accounts': {
'account{3}': '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c'
'account{10}': '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c'
},
'linkReferences': {},
'transactions': [
@ -246,7 +246,7 @@ var scenario = {
'name': '',
'type': 'constructor',
'inputs': '(uint256)',
'from': 'account{3}'
'from': 'account{10}'
}
},
{
@ -261,7 +261,7 @@ var scenario = {
'name': 'set',
'inputs': '(uint256)',
'type': 'function',
'from': 'account{3}'
'from': 'account{10}'
}
}
],

Loading…
Cancel
Save