You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[⠒] Compiling...
No files changed, compilation skipped
Script ran successfully.
== Return ==
0: contract SimpleStorage 0x34A1D3fff3958843C43aD80F30b94c510645C316
EIP-3855 is not supported in one or more of the RPCs used.
Unsupported Chain IDs: 1337.
Contracts deployed with a Solidity version equal or higher than 0.8.20 might not work properly.
For more information, please see https://eips.ethereum.org/EIPS/eip-3855
## Setting up (1) EVMs.
==========================
Chain 1337
Estimated gas price: 4.380813908 gwei
Estimated total gas used for script: 464097
Estimated amount required: 0.002033122592261076 ETH
==========================
###
Finding wallets for all the necessary addresses...
Enter keystore password:
Transactions saved to: /home/sjz/solidity-course/patrick/foundry-simple-storage-f23/broadcast/DeploySimpleStorage.s.sol/1337/run-latest.json
Sensitive values saved to: /home/sjz/solidity-course/patrick/foundry-simple-storage-f23/cache/DeploySimpleStorage.s.sol/1337/run-latest.json
Error:
You seem to be using Foundry's default sender. Be sure to set your own --sender.
No associated wallet for addresses: {0x1804c8ab1f12e6bbf3894d4083f33e07309d1f38}. Unlocked wallets: [0xdcc0ed94411272c1eb99067f34dfb0aefc511709]
Obviously it is caused by the wrong address, so I retry it by typing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions