1

What is the easiest way in dapple to call a contract function from different addresses (set the address which triggers the transaction)?

1

It is unclear from the question what exactly you are trying to achieve.

However if you want to have to call a contract and later upgrade/change the address of this contract, the usual pattern is

  • Describe the contract interface in Solidity (leave function bodies empty)

  • Create a Ethereum name service contract. Ropsten testnet comes with a default ENS contract.

  • For every transaction, look up the latest target contract address from the registry

  • Call this contract

2
  • 1
    My question was related to Dapple. I wanted to create Dapple test that imitates 2 users interacting with tested contract. I achieved that by creating proxy contracts for users. Proxy contracts are calling tested contract through interface. – Krzysztof Skrzypski Jan 7 '17 at 4:17
  • 1
    Cool. Feel free to drop in your own answer and mark it correct. – Mikko Ohtamaa Jan 7 '17 at 4:20

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.