Update compiler.js

pull/5370/head
yann300 6 years ago committed by GitHub
parent 9877ed51f4
commit 53cf7236a9
  1. 3
      remix-tests/src/compiler.js

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

Loading…
Cancel
Save