If someone send token to token address then there is a any way to transfer token from token address ?
Mar 3, 2023, 7:36 PM
if they have a function in the contract that allows them to do it yes
Mar 3, 2023, 7:39 PM
If contract has withdraw function yes
Mar 3, 2023, 7:40 PM
Is openzeppelin provide these functionality ?
Mar 3, 2023, 7:43 PM
You can code it yourself in few rows
Oz doesn't have those as far as i remember
Mar 3, 2023, 7:45 PM
How , who approve ?
Mar 3, 2023, 7:49 PM
if you don't know how to withdraw tokens from a contact, you want to check the erc20 standard and try to spend some time thinking on how you can do that =)
Mar 3, 2023, 7:52 PM
Okay
Mar 3, 2023, 7:52 PM
and remember remix is your friend.
When you need to test a new implementation, even if it's a single function, just write a new empty contract and test only that particular function
When you need to test a new implementation, even if it's a single function, just write a new empty contract and test only that particular function
once it works, you can extend it to your project
make an erc20 token on remix, make an empty contract and send the tokens there.
Those are now stuck.
What code is needed to remove them from the contract?
Those are now stuck.
What code is needed to remove them from the contract?
Mar 3, 2023, 7:54 PM
Okay
Mar 3, 2023, 7:55 PM