From 7c3f76f9198b074f6985d07a1d7d41c2e59d1805 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 18 Mar 2019 12:08:45 +0100 Subject: [PATCH 1/2] run remix-lib tests with v0.5.4+commit.9549d8ff --- remix-lib/test/txFormat.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/remix-lib/test/txFormat.js b/remix-lib/test/txFormat.js index ad6243331..d75ac5ba5 100644 --- a/remix-lib/test/txFormat.js +++ b/remix-lib/test/txFormat.js @@ -6,8 +6,17 @@ var util = require('../src/util') var compiler = require('solc') var compilerInput = require('../src/helpers/compilerHelper').compilerInput var executionContext = require('../src/execution/execution-context') +var solidityVersion = 'v0.5.4+commit.9549d8ff' /* tape *********************************************************** */ +tape('load compiler ' + solidityVersion, function (t) { + compiler.loadRemoteVersion(solidityVersion, (error, solcSnapshot) => { + if (error) console.log(error) + console.warn('testing *txFormat* against', solidityVersion) + compiler = solcSnapshot + t.end() + }) +}) var context tape('ContractParameters - (TxFormat.buildData) - format input parameters', function (t) { From 925c4b1a5861479166cdc93dc106f07596315f22 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 19 Mar 2019 11:36:47 -0400 Subject: [PATCH 2/2] ignore linting rule --- remix-tests/src/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-tests/src/compiler.js b/remix-tests/src/compiler.js index 7b450e97c..668fa7a7e 100644 --- a/remix-tests/src/compiler.js +++ b/remix-tests/src/compiler.js @@ -4,7 +4,7 @@ var async = require('async') var path = require('path') let RemixCompiler = require('remix-solidity').Compiler -String.prototype.regexIndexOf = function (regex, startpos) { +String.prototype.regexIndexOf = function (regex, startpos) { // eslint-disable-line var indexOf = this.substring(startpos || 0).search(regex) return (indexOf >= 0) ? (indexOf + (startpos || 0)) : indexOf }