diff --git a/remix-tests/src/compiler.js b/remix-tests/src/compiler.js index 476c8ea881..4d71e43879 100644 --- a/remix-tests/src/compiler.js +++ b/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(',') + '];'