I created a simple contract and deployed in with testrpc using truffle migrate. In the contract I have a variable
creator = msg.sender;
When calling the contract, it shows that the contract is always called on the first address from the 10 addresses in testrpc.
This is how i call the contract in the truffle console:
var instanceTest
MyContract.deployed().then(function(instance) { instanceTest = instance; })
instanceTest.creator.call()
This returns the first address from the list of addresses in the chain. Why is it the first and how do I call the contract on another address?
Thank you.