Unverified Commit 7990471b authored by yann300's avatar yann300 Committed by GitHub

Update compiler.js

parent c3d21d3b
......@@ -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(',') + '];'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment