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

In the truffle console, which account am I using, and how can I change 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