Replies: 3 comments 3 replies
|
Hello @Aries2337, Below is my whole process of me creating a keystore wallet and using it to run a deployment script. loyalty@Loyaltys-MBP FOUNDRYSTORAGE % cast wallet import sepoliaPrivateKey --interactive
Enter private key:
Enter password:
`sepoliaPrivateKey` keystore was saved successfully. Address: 0x186c2177c01e507596f9a866d3c741c7e1b15001
loyalty@Loyaltys-MBP FOUNDRYSTORAGE % cast wallet list
developmentKey (Local)
sepoliaSecondKey (Local)
defaultKey (Local)
sepoliaPrivateKey (Local)
loyalty@Loyaltys-MBP FOUNDRYSTORAGE % source .env
loyalty@Loyaltys-MBP FOUNDRYSTORAGE % forge script script/DeploySimpleStorage.s.sol:DeploySimpleStorage --rpc-url $SEPOLIA_RPC_URL --account sepoliaPrivateKey --broadc
ast
[⠒] Compiling...
No files changed, compilation skipped
Enter keystore password:
Script ran successfully.
== Return ==
0: contract SimpleStorage 0x099a19E42f32928596dc38D5fbcf4F7f0c937ecC
## Setting up 1 EVM.
==========================
Chain 11155111
Estimated gas price: 21.365452163 gwei
Estimated total gas used for script: 455465
Estimated amount required: 0.009731215669420795 ETH
==========================
##### sepolia
✅ [Success]Hash: 0x9f85231d7789579a0da80f6d75d93ecd70818a70c655f0446e41886ca292d3b2
Contract Address: 0x099a19E42f32928596dc38D5fbcf4F7f0c937ecC
Block: 6601110
Paid: 0.003876758807624514 ETH (350358 gas * 11.065135683 gwei)
✅ Sequence #1 on sepolia | Total Paid: 0.003876758807624514 ETH (350358 gas * avg 11.065135683 gwei)
==========================
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
Transactions saved to: /Users/loyalty/Desktop/CyfrinGig/FOUNDRYFUNDAMENTALS/FOUNDRYSTORAGE/broadcast/DeploySimpleStorage.s.sol/11155111/run-latest.json
Sensitive values saved to: /Users/loyalty/Desktop/CyfrinGig/FOUNDRYFUNDAMENTALS/FOUNDRYSTORAGE/cache/DeploySimpleStorage.s.sol/11155111/run-latest.jsonThe only difference between my deployment command and your command is that I didn't add the Try the command below and let's see how it plays out forge script script/Deploysimplestorage.s.sol:DeploySimpleStorage --rpc-url $SEPOLIA_RPC_URL --account keynamehere --broadcast -vvvv
[⠔] Compiling... |
1 reply
|
@EngrPips got it $forge script script/DeploySimpleStorage.s.sol:DeploySimpleStorage --rpc-url $SEPOLIA_RPC_URL --account sepoliaPrivateKey --broadcast
[⠰] Compiling...
[⠊] Compiling 1 files with Solc 0.8.26
[⠒] Solc 0.8.26 finished in 4.51s
Compiler run successful!
Enter keystore password:Script ran successfully.
== Return ==
0: contract SimpleStorage 0x7e4118f8a99C6C2B159440f2a43924B49Edab870
## Setting up 1 EVM.
==========================
Chain 11155111
Estimated gas price: 4.057123636 gwei
Estimated total gas used for script: 464295
Estimated amount required: 0.00188370221857662 ETH
==========================
##### sepolia
✅ [Success]Hash: 0xb7c48d32ee90e15ba167ef26b5e733466c7928c09d1e2a9c5baf580f3b45c327
Contract Address: 0x7e4118f8a99C6C2B159440f2a43924B49Edab870
Block: 6601979
Paid: 0.00078343904568852 ETH (357240 gas * 2.193032823 gwei)
✅ Sequence #1 on sepolia | Total Paid: 0.00078343904568852 ETH (357240 gas * avg 2.193032823 gwei)
==========================
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.Now I can go to sleep..... |
2 replies
|
Glad you figure it out. Keep crushing it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi All,
I have got this far without having to ask for help, any issues I have encountered I have managed to find a solution. This however has me slightly baffled.
I have sent a transaction to the Sepolia test net using the old way as stated in the course and it works no issues , trying to use the "new" and improved way with Cast Wallet. I just keep getting an error no matter what I try!!!
Old way:
New way:
New command:
Then I tried again with another wallet import:
I have looked at the docs and can
t see my mistake (And I know its going to be a simple mistake)Anyone faced this issues???
Thanks
All reactions