Replies: 4 comments 3 replies
-
this very helpful |
Beta Was this translation helpful? Give feedback.
-
how to disconnect and again connect the metamask account |
Beta Was this translation helpful? Give feedback.
-
Hey aScHEABL I am sharing my github link here where my codes are available I am sharing my github link so that you can see the code and tell me Well The problem is that I am able to complete the transaction and it is being added to the blockchain as well and metamask is able to show the transaction But the problem is that it doesn't even matter how much ever amount I put MetaMask is showing me you are sending 0 Sepolia. Here is the link for my github repo so that you could see this I tried debugging by myself and found that in client/src/context/TransactionContext.jsx line no 104 is not getting executed the console.log is throwing an error like this Kindly look into this |
Beta Was this translation helpful? Give feedback.
-
Hello @aScHEABL I have actually sort out a way to message you but none except here, LOL. I have followed you above steps at about 1:31:45 where we try to deploy using sepolia, console shows "Compiled 1 Solidity file successfully (evm target: istanbul)." But immediately proceeds to show a TypeError rather than the address of the deployed contract. The error it shows is, "TypeError: transactions.deployed is not a function
|
Beta Was this translation helpful? Give feedback.
-
The previous post has been confirmed helpful, sadly the owner of this repo @adrianhajdin had chosen to delete the entire issues section altogether without prior notice.
In order to help with this community and other fellow developers,
I decided to reach out Github Support and I was able to get the original content down below.
The Ropsten is deprecated, you could use Sepolia testnet instead, just replace everything Ropsten with Sepolia and it works just fine.
At round 1:00:00 (1 hour) into the video he said to install the devdependcies with commands, do not do this as you'll run into error later on when you run "npx hardhat test". If you have ran the command
npm install --save-dev hardhat @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers
just delete the entire smart-contract folder and re-create it.
Then do this instead, just run "npx hardhat" (remember to cd into the folder) and it'll download all the necessary & latest packages for you, then you continue with the video until the part where you actually run "npx hardhat test", it'll show an error.
Watch the error carefully, it should print what packages you're missing, simply copy and paste and install the missing packages, remember to do it either "npm install --save-dev " or "yarn add --dev ".
After you done this, the "npx hardhat test" command should run just fine.
There are some file names are different from the video, for instance: smart-contract/contracts/lock.sol
This shall not affect anything, you can continue with the video.
that error is due to some changes in recent update of ethers package, so you have to go back to previous packages of ethers
to do that :
The above 3 steps should resolve all the problems you'll run into this project.
If you found this post helpful please respond your feedback and upvote this.
Beta Was this translation helpful? Give feedback.
All reactions