New answers tagged

-1 votes

How is this scam code transferring tokens to the unspecified wallet within?

Is there any way to trace this as I've been scammed by this person? I want to know if there is a way to recover my ETH?
user avatar
2 votes

How is this scam code transferring tokens to the unspecified wallet within?

It looks like coinmarketcap.com is a NPM package that returns the address of the hacker and has the Manager details. When you delete that import line, the Manager gives an error. The npm package is ...
user avatar
  • 1,039
0 votes

Intializing ERC20 token using payable constructor from another function of different contract

if you need only the amount of msg.value, pass another argument for totalSupply when initialing: constructor(string _tokenSymbol, string _name, uint256 totalSupply) { symbol = _tokenSymbol; name = ...
user avatar
  • 66
0 votes

function depositTokens doesnt work in remix ethereum , please help

Approving the staking contract and amount from my tokens main contract and it worked. Thanks a lot for the help @shubhamskatel
user avatar
1 vote

Is the method call along with the book-keeping to send funds to a smart contract and the transaction to actually transfer funds separate?

Hello and welcome to stackexchange :) (by the way, you can format your code in a block by surrounding it with 3 backtics (```) before and after, i did it for you. No. This data is in your smart ...
user avatar
  • 1,328
0 votes

function depositTokens doesnt work in remix ethereum , please help

You can see the error right there. insufficient allowance. As you can see, you are using transferFrom() function in the depositTokens() function. For using transferFrom, you need to first approve the ...
user avatar

Top 50 recent answers are included