Replies: 1 comment 11 replies
-
I think specifying Would love to hear what @PatrickAlphaC thinks about it. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I find an issue about UX of keystore through Partick's solidity course.
And I keep an eye out for this new feature and finally it was merged at here.
I try to test this new feature.
I import my private key (from Ganache local blockchain) by typing
and I get the output
The address
0xdcc0ed94411272c1eb99067f34dfb0aefc511709
listed above correspondes to the private key I input.So I think the saved keystore has recorded the address corresponding to the private key.
It all works well up to now.
And then I try to deploy my smart contract using script by typing
But I get an error
Obviously it is caused by the wrong address, so I retry it by typing
Finally, everything goes well.
And what puzzles me is
Since I have already specified --account, why do I need to specify --sender?
Why does the --account option not automatically select the corresponding address?
I am brand new to this field, please forgive me if my question is stupid.
And please correct me if there is anything wrong with my formatting. @PatrickAlphaC or anybody else
Beta Was this translation helpful? Give feedback.
All reactions