Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

Commit 5ddd9b1

Browse files
authored
Merge pull request #1136 from ethereum/fixRemixLibTest
run remix-lib tests on v0.5.4+commit.9549d8ff
2 parents 696567f + 925c4b1 commit 5ddd9b1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

remix-lib/test/txFormat.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@ var util = require('../src/util')
66
var compiler = require('solc')
77
var compilerInput = require('../src/helpers/compilerHelper').compilerInput
88
var executionContext = require('../src/execution/execution-context')
9+
var solidityVersion = 'v0.5.4+commit.9549d8ff'
910

1011
/* tape *********************************************************** */
12+
tape('load compiler ' + solidityVersion, function (t) {
13+
compiler.loadRemoteVersion(solidityVersion, (error, solcSnapshot) => {
14+
if (error) console.log(error)
15+
console.warn('testing *txFormat* against', solidityVersion)
16+
compiler = solcSnapshot
17+
t.end()
18+
})
19+
})
1120

1221
var context
1322
tape('ContractParameters - (TxFormat.buildData) - format input parameters', function (t) {

remix-tests/src/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var async = require('async')
44
var path = require('path')
55
let RemixCompiler = require('remix-solidity').Compiler
66

7-
String.prototype.regexIndexOf = function (regex, startpos) {
7+
String.prototype.regexIndexOf = function (regex, startpos) { // eslint-disable-line
88
var indexOf = this.substring(startpos || 0).search(regex)
99
return (indexOf >= 0) ? (indexOf + (startpos || 0)) : indexOf
1010
}

0 commit comments

Comments
 (0)