trying to call a mapping address to bool
my err:
Uncaught Error: invalid address (arg="", coderType="address", value=undefined)
Anyone know what is wrong here ?
Jun 17, 2022, 1:07 PM
Console log address
Jun 17, 2022, 1:21 PM
got it now, address was not passed in correctly
Jun 17, 2022, 1:25 PM
never forget
console log helps 99% of the times
console log helps 99% of the times
Jun 17, 2022, 1:26 PM
https://code.visualstudio.com/docs/nodejs/nodejs-debugging
try this for debug your app
https://code.visualstudio.com/docs/nodejs/reactjs-tutorial#_debugging-react
Jun 17, 2022, 1:28 PM
read
a uint? a string?
you can't swap directly to BUSD
Jun 17, 2022, 1:37 PM
Even when I tried swapping to BNB it doesn't work
Same error
execution reverted: TransferHelper::safeTransfer
Same error
execution reverted: TransferHelper::safeTransfer
Jun 17, 2022, 1:39 PM
use tenderly to debug
Jun 17, 2022, 1:39 PM
function self() public view virtual returns (address) {
return address(this);
}
return address(this);
}
self() is just function for easy call address(this)
dont say me thanks, just help other people if you see they need help :)
make people happy for be happy you
https://github.com/nikola43/CatPizzaToken/tree/main/test
https://github.com/nikola43/CatPizzaToken/blob/main/contracts/CatPizza.sol#L167
on this code i swap and add liquidty, is fully testnet
this code are on BSC mainnet
Jun 17, 2022, 1:44 PM
okay i will check it out.
private repo
Jun 17, 2022, 1:47 PM
on this token, i have swap and liquidity for bnb
Jun 17, 2022, 1:47 PM
stop spamming please
send it in dm
Jun 17, 2022, 1:47 PM
i dont be spaming, only trying help, ok sorry so much, i will never do again
Jun 17, 2022, 1:47 PM
yes but the repo are all privates
Jun 17, 2022, 1:48 PM
@silentworks DM if you need help
im idiot sorry
@silentworks i change to public
Jun 17, 2022, 1:49 PM
read the error
you just got the answer
Are you using hardhat?
what are you using
Jun 17, 2022, 2:49 PM
Dm me for don't span group please
Jun 17, 2022, 3:43 PM