Skip to main content
2 of 2
better short description
kris
  • 380
  • 1
  • 4
  • 12

In the truffle console, how to set and get current account?

I'm using the $ truffle console.
I can see my available accounts using truffle(development)> web3.eth.accounts.

But when I run some smart contract code, which account is running the contract?

And, how can I change the account which is running the contracts in the truffle console?

kris
  • 380
  • 1
  • 4
  • 12