I get this error, even though I do specify the transaction sender.Here is my code:
for(let a=1; a<TEST_ORACLES_COUNT; a++) {
await config.flightSuretyApp.registerOracle({from: accounts[a], value: fee});
let result = await config.flightSuretyApp.getMyIndexes.call({from: accounts[a]});
console.log(`Oracle Registered: ${result[0]}, ${result[1]}, ${result[2]}`);
}
It will accept my code if I put accounts[1] instead of accounts[a]. But I need to loop. Any idea how to get around this?
accounts[a]
isundefined
for some value ofa > 1
. – goodvibration Jun 30 '20 at 11:12accounts
array with at leastTEST_ORACLES_COUNT
accounts in it. – goodvibration Jun 30 '20 at 11:14