gm guys!

I am trying to use wagmi to create a button that send 20 USDC.

Based on the wagmi useSendTransaction() hook, I can only send ETH.

Do you know how I can make the changes (may be pass options) to send USDC instead of ETH?

Jan 12, 2023, 1:37 PM
useContractWrite
on the usdc transfer function
Jan 12, 2023, 1:40 PM
Thanks! Is there an example with USDC code online?

Just want to and sure I get it right
Jan 12, 2023, 1:45 PM
no but I can send it once I am back
Jan 12, 2023, 1:47 PM
That would be amazing! Thank you very much 🙏🏼
Jan 12, 2023, 1:47 PM
What'
show the env censuring your private key
do you have a private key inside your env or no?
.
do you know what is .env ?
then why you wrote those lines
why did you write: process.env....
copy paste...
exactly
you have no idea of what you are doing then
why you guys want to risk money?
step 2: learn how to google

https://codeburst.io/process-env-what-it-is-and-why-when-how-to-use-it-effectively-505d0b2831e7
step 3: before asking questions try to search on your own
are you reading my messages or no?
you ask for help but ignore the help
Jan 12, 2023, 2:50 PM
Don’t share the secret sauce man
Jan 12, 2023, 2:50 PM
then read evereything
and if you still have issue comeback here
LOL
do you want a ban right?🤣
then go on
do you have a connected account?
which rpc are you using
Jan 12, 2023, 3:59 PM
hardhat: {
forking: {
url: "https://bsc-dataseed.binance.org/",
}
},
Jan 12, 2023, 4:20 PM
show the full error message
ankr should work
Jan 12, 2023, 4:25 PM
thanks
Jan 12, 2023, 4:25 PM
or quicknode
guys please start sharing screenshot etc when having issues😔😭
no need to reimpory ethers if you are in hre
oh no sorry in ts you have
Jan 12, 2023, 4:37 PM
anyone know of a good ws for arbitrum?
dam autocorect
Jan 12, 2023, 4:42 PM
ops sorry
I wanted to ping @javad_yakuzaa
Jan 12, 2023, 4:42 PM
using ankr but is there any better to your knoledge
Jan 12, 2023, 4:42 PM
for arbitrum no idea
Jan 12, 2023, 4:43 PM
kk ty
Jan 12, 2023, 4:43 PM
share link
I answered on the other group
read
and same issue?
cam you try removing that line
I think that with hardat toolbox you don't need anymore that import ethers
just import this
import hre from "hardhat";
and then do

hre.ethers.method
https://hardhat.org/hardhat-runner/docs/guides/test-contracts
.
open it
there is a nice example in ts
Jan 12, 2023, 5:04 PM
sometimes its better to take a step back and do something a bit easier until you get more experience rather than jumping into something super complicated you cannot understand
Jan 12, 2023, 5:25 PM
Or just change the subject and come back again
Today I manged making context api working with Next 13 beta version of app all in typescript

I lost on the same task like full 3 days one months ago
So I learned better typescript and now back and solved in 3 hours only
Jan 12, 2023, 5:27 PM
i mean is it just an error shown on the source?
yep maybe he is even missing some extension on vscode
answer me
where do you see that error
on the source ?
or in terminal after running a command
ok run a command
like npx hardhat compile
and show the output
show the output
I told you show the output
share a screenshot
finee
then it works
now try to run the test
where you had issues
or just remove await cake.deployed()
should be fine the other line
but please take my advice
start from basics
you need to understand js at least first
then you should be able to go on
use google to check what each method does
and what returns
Jan 12, 2023, 5:54 PM
congrats you guys just helped someone fraudulently get hired
Jan 12, 2023, 6:01 PM
some messages are missing or i dont get it?
Jan 12, 2023, 6:36 PM
magnitude is needed for precision
check the code
it is well commented
Jan 12, 2023, 6:43 PM
doesn't say much about the magnitude thing
Jan 12, 2023, 7:09 PM
cam't tell without the code
Jan 12, 2023, 7:45 PM

© 2024 Draquery.com All rights reserved.