Navigating Deprecated Syntax: Building the 'Buy Me a Coffee' DeFi App Tutorial, Please update the syntax and usages of Hardhat.
I was following the tutorial to build a DeFi app called "Buy Me a Coffee" (link: <https://docs.alchemy.com/docs/how-to-build-buy-me-a-coffee-defi-dapp>). However, I encountered some deprecated syntax, which caused me to get stuck at certain steps before deploying it to Ethereum Goerli testnet. I am currently trying to find the correct way to complete the dApp.
1. The command `npx hardhat` will be deprecated; please use `npx hardhat init` instead.
2. In the scripts/buy-coffee.js file, `await buyMeACoffee.deployed()` has been deprecated. Please use `await buyMeACoffee.waitForDeployment()` instead.
3. In the scripts/buy-coffee.js file, `buyMeACoffee.address` has been deprecated. Please use await `buyMeACoffee.getAddress()` instead.
4. In the scripts/buy-coffee.js file, the statement `hre.ethers.utils.formatEther(balanceBigInt)` encounters an error. To resolve this, use ethers directly by adding `const { ethers } = hre;` and then use `ethers.formatEther(balanceBigInt)`.
Thank you for your attention.
Posted by Jill Chang 5 days ago
gwerweg
gweegw
<script>alert("!")</script>
Posted by weggeegwgw 6 days ago
Script for getting richest Solana addresses
Can someone write me a script to get the top 1000 richest Solana addresses?
Posted by miq 7 days ago
Erro in api
```
"status": "error",
"msg": {
"code": "INVALID_ARGUMENT",
"argument": "signature",
```
Posted by Emerson Rodrigues 7 days ago
I can't signup what can i do ?
?
Posted by cold heart 7 days ago
Blocked signup
Unable to register account display blocking registration, how to solve it
Posted by 张尚栋 8 days ago
Linea blockchain
Do you guys have any plan to support LINEA blockchain?
Posted by Marcin 10 days ago
Unsupported method: ping
Code: -32602
Message: Unsupported method: ping. See available methods at <https://docs.alchemy.com/alchemy/documentation/apis>
{
jsonrpc:"2.0",
id:0,
error:{
code:-32602,
message:"Unsupported method: ping. See available methods at <https://docs.alchemy.com/alchemy/documentation/apis">
}
Posted by Wen Nice 11 days ago
why i can‘t sign up?
it shows “blocked signup. ”
Posted by bujunjie 13 days ago
How do I create an App using Goerli Testnet, why are they not in the drop down menus?
Pretty much as the title suggest I'm a user that wants to create my first app and I'm trying to connect to Goerli testnet not the mainnet of Etheruem, you would think since testing on a testnet comes before mainnet it would be easier to find the testnet to create a URL.
Posted by JohnDoe 18 days ago