html-fund-me-fcc's People
Forkers
wenzhun michaelvogt uday03meh mubashirhussainkhadim harmeng sandy13869 silverjrm joonakauranen yongjinkim49 bestchoicetechie ed-marcavage vaasanthk divyanshudeoli jjjeon0223 baocongchen yatinkhandelwal kohuyso nubshark hhirshland defidaniel1 davidalter213 roctan charizard17 denchance deep0072 ippy1997 mooezz999 plamen5rov zoidburgh okioki-nunc aczire farhananis005 aviorn36 siegfriedbz jacques13 anibus plentyofshade aniketpatil8824 sdfsdfsv milshop ethanok imauice tamazt bps1980 inubexx jovannichen luisabellan wtiger0605 noveleader georgyia nishanth0203 dynamitetechdev satyadeepsb palaceparis jenishgondaliya crypto-caesar agrimrai jevinambaliya26 oozmann reg-green stitched203 davkababo vswaroop04 ashu999 alymurtazamemon chenxting hirusha1-cpu pinnacle-g alex81983 vijoin rezowansifat mahbub11 wangzonm lirui9613 0xvaibhav shahmeer07 hugemartyr mortazavi21 33mahdigachloo33 aliemdadi mahdieh-amiri1 0xdecentralizer darklord017 thebharatmishra nonchain jg8481 csitumahtml-fund-me-fcc's Issues
metamask issue.
after connecting metamask to local host as shown in tutorail. i am unable to fund my contract
snippet of fund function
async function fund() {
const ethAmount = "0.01"
if (typeof window.ethereum !== "undefined") {
const provider = new ethers.providers.Web3Provider(window.ethereum)
const signer = provider.getSigner()
const contract = new ethers.Contract(contractAddress, abi, signer)
console.log(contract)
const transactionResponse = await contract.fund({
value: ethers.utils.parseEther(ethAmount),
})
}
}
i revcieved two errors s in console of live server is
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error
Uncaught (in promise)
CDN issue (CORS) Access-Control-Allow-Origin request header
Access to script at 'https://cdn.ethers.io/lib/ethers-5.2.esm.min.js' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is quite frustrating and I am unable to proceed beyond this.
Metamask Error: Nonce too high.
Issue Description:
If hardhat node is re-executed, when you trying call the fund() function the console will throw a this error:
Nonce too high. Expected nonce to be 2 but got 3. Note that transactions can't be queued when automining.
Solution:
Patrick share a solution for his metamask version on 13:19:00, but in my version (10.28.3) the solution is:
Go to Metamask > My Accounts (top-right circle) > Settings > Advanced > Press the button "clear activity tab data" in the "Clear activity and nonce data" section.
listenForTransactionMine should remove await keyword, because it not an async function
await listenForTransactionMine(transactionResponse, provider)
input value for inputting ETH should be strictly numbers
Currently the input value can take alphabets, so i can change that to accept numbers only
.
Code for conneting metamask wallet to HTML isn;t working on both firefox and chromium browsers
Error: Transaction reverted: function selector was not recognized and there's no fallback function (BUT contract calls still work?!)
Hi! I keep getting the following error when i call the fund contract. And it also seems that when i call it once, it runs multiple times in my hardhat node (with the same errors coming out several times)
eth_call
Contract call: FundMe#<unrecognized-selector>
From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
To: 0xe7f1725e7734ce288f8367e1bb143e90bb3f0512
Error: Transaction reverted: function selector was not recognized and there's no fallback function
But when i check the console in my webpage, it seems to have worked (and i also got the transaction confirmations in metamask)
Is this normal? even though the contract calls are working properly with getBalance and withdraw
js issues helpz
window.ethereum "undefined"
Hi everybody! ๐
I just started with lesson 8: HTML / Javascript Fund Me (Full Stack / Front End)
At the beginning of the lesson, i tried to check window.ethereum
on the Chrome browser console and it showed me undefined
๐ although i have MetaMask
installed and i was using it along with the course with no problems.
I'll keep following along with coding tho, and if any of you can help me with this, i'd really appreciate it.
metamask not connecting to local network
Hello Sir! @PatrickAlphaC and everyone I have an issue Kindly help me !
when I try to add a new network in metamask and add my RPC URL and ChainId it gives an error
Could not fetch chain ID. Is your RPC URL correct?
and when I try to save it shows
my hardhat localhost is running in the background
what should i do I'm stuck...
Error, when i use withdraw function
not able to withdraw
error_issue.mp4
provider.once returns text instead of numbers
In this section, following the tutorial should return the number 1, but I got the wrong text instead
CODE
function listenForTransactionMine(transactionResponse, provider) {
console.log(`Mining ${transactionResponse.hash}...`)
// create a listener for the blockchain
return new Promise((resolve, reject) => {
provider.once(transactionResponse.hash, (transactionReceipt) => {
console.log(
`Completed with ${transactionReceipt.confirmations} confirmations..`
)
resolve()
})
})
}
ERROR
Completed with async confirmations() {
return (await this.provider.getBlockNumber()) - this.blockNumber + 1
} confirmations..
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.