Categories
Cryptocurrency Ethereum Mastering Development

Error: The send transactions “from” field must be defined!

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 […]