Image 1: Codes (Html, Js, Sol)
Image 2: How the input is given
Image 3: Error Recieved
What i am doing
Hi guys i am trying to send a address to the Blockchain contract.
input: address (0xakhdywdji28w8ruw8q9.....)
Jun 13, 2022, 6:01 AM
Jun 13, 2022, 6:01 AM
You pasted abi, where it says - - Abi here --
Jun 13, 2022, 6:24 AM
Yes i did.
Can anyone look into this..
Jun 13, 2022, 7:42 AM
Seems like argument data type, doesn't match the one in the abi
You have lots of functions to try out, you still owner
Jun 13, 2022, 8:35 AM
i am getting Error in estimated gas fees
Jun 13, 2022, 8:35 AM
Set router as fee exempt
Jun 13, 2022, 8:35 AM
when i want to change some functions. I get like 0.4 bnb
yeap, 0.4 bnb for that
Jun 13, 2022, 8:36 AM
Okay, force it and debug the tx
Jun 13, 2022, 8:36 AM
nooo
it is on mainnet
why he should waste money
Jun 13, 2022, 8:36 AM
Ahh, lol I see
Didn't notice that
Won't be charged full amount tho
Deploy on test and force it there then, debug
Jun 13, 2022, 8:37 AM
people stil use this shit
Jun 13, 2022, 8:38 AM
what is that
Jun 13, 2022, 8:38 AM
your fucking code
Jun 13, 2022, 8:38 AM
I dont know how to do that xd
Function for i mean
Jun 13, 2022, 8:39 AM
disable swap
exclude your self from fees if not done yet
exclude your self from fees if not done yet
Jun 13, 2022, 8:39 AM
Why you test on main anyway?
Why we have testnet
Jun 13, 2022, 8:40 AM
This was my mistake yess :(
Managed to do that and it doesent work
i now tried this via router
getting high fees
Read above pleasee
Disable all functions that messes with transferFrom
he said that to me so i put all the functions with transfer
he said that to me so i put all the functions with transfer
Contract was working pretty fine. Bots could buy and sell normally
their fork contract was working fine
and mine too. As i said. tax was 9% both ways and even then i couldnt pull out liquidity
i dont know why was that. Then i went to change some function then it got transfer failed
Does any1 knows what this function does?
Can i use it in any way to get tokens or liquidity out?
Jun 13, 2022, 9:02 AM
disable it
Jun 13, 2022, 9:10 AM
What should i write in these fields?
Jun 13, 2022, 9:12 AM
you just waste 400$ in liquidity
Jun 13, 2022, 9:12 AM
So there is no way to get it back?
Jun 13, 2022, 9:13 AM
yes...the argumnet is address in contract, but the js is treating it as string... Is there ny way by which i can make thr string as Address
@ExcessiveOverlord
Jun 13, 2022, 7:23 PM
you passed the string "_doctorAddress". i'm not a doctor but that doesn't look healthy
Jun 13, 2022, 8:19 PM
Doesn't looks healthy to me also. And this has resulted in past day headbreaking😅...
But what i was actually trying to do was.
Taking input from user,
Then using Js sending it to smart contract . And the smart contract is catching them as address.
But what i was actually trying to do was.
Taking input from user,
Then using Js sending it to smart contract . And the smart contract is catching them as address.
Jun 13, 2022, 9:07 PM
You probably have quotation marks around your variable somewhere
It then doesn't evaluate to the address but to the variable's name
Jun 13, 2022, 9:09 PM
Letme check that also.
may there be a problem when i am storing it in a variable var.
Jun 13, 2022, 9:10 PM
The problem is not the kind of variable you're storing your address in. The problem is that at some point when passing the variable, you're not passing
_doctorAddress
But
'_doctorAddress'
Or
"_doctorAddress"
Or
`_doctorAddress`
_doctorAddress
But
'_doctorAddress'
Or
"_doctorAddress"
Or
`_doctorAddress`
Jun 13, 2022, 9:11 PM
this is what i had done.
Jun 13, 2022, 9:27 PM
Oh wait, sorry. You're actually not passing "_doctorAddress". You're passing an empty object
Jun 13, 2022, 9:29 PM
how so
oh yes i got that to🙈
Jun 13, 2022, 9:30 PM
For value it says {}. I'm not working with web3 and assumed argument to be what you gave to web3
Jun 13, 2022, 9:31 PM
passing different thing.
Jun 13, 2022, 9:32 PM