2022 Developer Survey is open! Take survey.

Hot answers tagged

3 votes

How to Burn Tokens from someone wallet

You can't burn tokens from other addresses/contracts unless that address/wallet approves you to do it. See the ERC20 approve method.
user avatar
  • 141
3 votes
Accepted

Ethereum stuck in the smart contract

Unfortunately, I don't see any way to get the Eth. The only places where the code sends Eth is in claim when it sends the sent amount (sent inside that transaction) to someone, but it never sends more ...
user avatar
1 vote
Accepted

Can Ethereum prevent secondary market sales?

Yes, since win-token-v1 and win-token-v2 are most probably ERC-721 tokens (NFTs), they manage their own ledger and able to allow transferFrom to be executed from a specific msg.sender, that will be ...
user avatar
  • 1,236
1 vote
Accepted

Initializing IUniswapV2Pair from msg.sender

So IUniswapV2Pair is a cast, that casts an address into an interface, in this case the IUniswapV2Pair interface. Doing this essentially makes all the functions inside of the interface easily callable ...
user avatar
1 vote
Accepted

How large is the key-value dataset of Tether?

As of 2022-05-18 14:35:00 UTC the Tether USDT contract has a total of 4,568,883 holders. It will consume 4,568,883 x 32 bytes = 146,204,256 bytes = 139.43 Mbytes.
user avatar
  • 29.3k
1 vote

Transaction fail error

Your smart contract code works. Possibly your problem when adding this condition: require(msg.value > 0.1 ether); is that you don't set the value inside msg.value textbox present in DEPLOY & ...
user avatar
  • 1,195

Only top scored, non community-wiki answers of a minimum length are eligible