Hello! How r u guys?
https://bscscan.com/address/0x55e00121241d6870324a8e6dffaabbe2e0359863#code
I have the same contract as this. But I can't execute a dev function on react. Do anyone know how to call it?
For example the "_transfer" function
Dec 23, 2021, 5:51 PM
_transfer in that contract is an internal function (can't be called from a wallet, only from other code in the contract or a deriving contract)
perhaps you instead want to try calling transfer or transferFrom
with 18 decimals, yeah the upper limit is roughly 1.16 * 10^59 tokens
at least from the token's perspective...i'm not aware if uniswap has it's own upper limit
ah yes, it does...112 bit int for the reserves
so about 5.2 * 10^15 tokens (with 18 decimals)
@tatai_007 hope that helps
Dec 23, 2021, 6:15 PM
Thanks man, I would like to make a simple deposit and withdraw project, that I can call from wallet, is it possible?
Dec 23, 2021, 6:18 PM
of course
Dec 23, 2021, 6:19 PM
For exemple in a simple game, that someone deposit my own token to the contract owner, play and withdraw if want
But i am so lost about this 😂😂😂
Dec 23, 2021, 6:20 PM
Yeah thanks.
Dec 23, 2021, 6:20 PM
Welcome
@coffeeconverter you said it was a dev function, but even on react i can not call it, it says that function doesnt exist, you know why?
Dec 23, 2021, 7:27 PM
what function are you talking about, and on what contract?
not sure what you mean by "dev function" either
Dec 23, 2021, 7:27 PM
This one
_transfer()
Dec 23, 2021, 7:28 PM
yes, as I wrote earlier, that is an internal function, so you can't call it directly
instead you call transfer or transferFrom
Dec 23, 2021, 7:28 PM
Ah okay, so it's only call inside solidity, right?
Dec 23, 2021, 7:30 PM
right
Dec 23, 2021, 7:30 PM
Thanks for explaning
Dec 23, 2021, 7:30 PM
my pleasure
Dec 23, 2021, 7:30 PM
On this real project that i sent, the player can withdraw, but they do not call transfer even transferFrom, it's a function which is possible to withdraw the tokens earned on the game, but I can't find it :(
Dec 23, 2021, 7:33 PM
could be in a second contract, this one is a pretty plain token contract
but yeah, transfer will have to be called in order for any tokens to move...as you can see on that contract, transfer gets called a lot
Dec 23, 2021, 7:35 PM
Understood
So, thank you for your help
I will try to learn more to do something like this, the hardest point is withdraw from player but without approve and transferFrom
So hard to me haha
Dec 23, 2021, 7:40 PM
Can overflow technically I tjink and you are still ok
:(
Dec 23, 2021, 8:10 PM