Hot answers tagged

2

As you may have learned, Metamask cancels a transaction that has not been mined by replacing it with a transaction where you send 0 ETH to yourself. This method works for cancelling any transaction, including NFT minting transactions that have not been confirmed in a block. If you want to replace a transaction yourself by manually setting the nonce of your ...


1

I would say it's not a good arch design. you cannot control how long would transaction stay in mempool. It could be seconds, hours, days. if user has a pending transaction, it cannot create a new one. It's because of nonce, which has to be uninterruptedly incremental. For it to keep using your on-chain service, it would have to cancel the pending ...


1

Etherscan hardcoded the CryptoPunks contact to show up that way. Basically Etherscan is programmed this way: If contract is CryptoPunks handleCryptoPunksSpecially() Else If contract is CryptoKities handleCryptoKittiesSpecially() Else If contract follows ERC721() handleGenericERC721() Else itIsNotAnERC721() And this is precisely why we need standards,...


1

you just own or transfer to someone else wallet or use the contracts to sell your integer which represents the cryptopunk number on the "marketplace". they released the whole image hash of all cryptopunks in the blockhain. But it's a proof concept, not an nft. Now, if you have this whole image it's not that hard to "extract" the related ...


1

I am not totally sure I understand your question, and what you can and can not change, and what is the difference between snaToken and myToken. You are checking the balance of snaToken but then sending myToken - what exactly is happening there? But anyway, do you know of the allowance mechanism? (functions .approve and .transferFrom) You can use it to do ...


1

you should use tx.origin instead ofmsg.sender, If there are multiple function invocations on multiple contracts, tx.origin will always refer to the account that started the transaction irrespective of the stack of contracts invoked. However, msg.sender will refer to the one that called the contract, could be a smart contract address.


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