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

Commit

Permalink
Merge pull request #1136 from ethereum/fixRemixLibTest
Browse files Browse the repository at this point in the history
run remix-lib tests on v0.5.4+commit.9549d8ff
  • Loading branch information
yann300 authored Mar 20, 2019
2 parents 696567f + 925c4b1 commit 5ddd9b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions remix-lib/test/txFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion remix-tests/src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5ddd9b1

Please sign in to comment.