Update compiler.js

pull/5370/head
yann300 6 years ago committed by GitHub
parent 53cf7236a9
commit 603808d058
  1. 2
      remix-tests/src/compiler.js

@ -12,7 +12,7 @@ String.prototype.regexIndexOf = function (regex, startpos) {
function writeTestAccountsContract (accounts) { function writeTestAccountsContract (accounts) {
var testAccountContract = require('../sol/tests_accounts.sol.js') var testAccountContract = require('../sol/tests_accounts.sol.js')
// TODO: this will only work for solidity 0.5.0 // TODO: this will only work for solidity 0.5.0
var body = 'address payable[' + accounts.length + '] memory accounts;' var body = 'address payable[' + accounts.length + '] memory accounts'
if (!accounts.length) body += ';' if (!accounts.length) body += ';'
else { else {
body += '= [' + accounts.map((value) => { return `address(${value})` }).join(',') + '];' body += '= [' + accounts.map((value) => { return `address(${value})` }).join(',') + '];'

Loading…
Cancel
Save