1

I want to write tests for my simple solidity contract and one of the tests I have is to pass an address dynamically from remix or ganache-cli. Is there a way to access all other addresses from remix in a contract function?

enter image description here

  • It is not possible for a contract to have access outside the EVM. So accessing the accounts in your node is not possible. – Ismael Dec 6 '18 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.