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

In the truffle console, which account am I using, and how can I changeto set and get current account?

Source Link
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?