Top new questions this week:
|
When trying for the first time to swap between 2 tokens with a given ETH wallet you get the message “Allow the Uniswap Protocol to use your XXX” (XXX is whatever token): Clicking in the (?) …
|
Hi: When I Deploy or execute a function I get three categories of cost: gas transaction cost execution cost For example: gas: 32296 gas transaction cost: 28083 gas execution cost: 28083 gas …
|
I am trying to run tests to see how much a smart contract will cost, but since I am in my research period, I have to make some assumptions on how my smart contract will be developed. I would like to …
|
I see in eips.ethereum.org/EIPS/eip-3675#devp2p that NewBlock and NewBlockHashes are deprecated, but can’t see what comes instead to propagate blocks.
|
Getting this full error in my solidity contract but not fully sure why. Could someone help point me in the right direction or to any docs that could help me? The error I am getting is: Invalid type …
|
I was playing with some solidity code that reverts the array (was answering a question here on the forum). And while implementing it, I somehow broke Remix for me, it crashes the moment I ran the …
|
I am trying to write a script to call the following method: /// @notice Creates a proposal /// @param _targets The target addresses to call /// @param _values The ETH values of each call …
|
Greatest hits from previous weeks:
|
I can deploy a contract using ethers and Hardhat with the following: const myContract = await hre.ethers.getContractFactory(“SomeContract”); const deployedContract = await myContract.deploy()…
|
I just installed metamask and when I click import it asks for a private key. I have no idea what that is from my coinbase wallet. All I see in my coinbase wallet is my 12 word phrase, where do I find …
|
/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param …
|
I’m running a geth node on slow hardware. At the current rate of progress it could be several days before I can download all the blockchain. Is there a way to get it to synchronise more quickly?
|
It is possible to check which address owns a particular NFT by using the ERC721 standard function: function ownerOf(uint256 tokenId) public view virtual override returns (address) in ERC721.sol But I …
|
I want to watch a Solidity contract using the Mist browser. I know how to do that and it needs the address and the json. I have the address, but I don’t have the json. I do have the source code. Can …
|
I’ve recently attempted to explain Ethereum to several non-techy friends. My explanation usually involves starting with a comparison to Bitcoin, but this quickly becomes complicated as I then have …
|
Can you answer these questions?
|
I was going through compound’s Timelock.sol contract and found this function. function setDelay(uint delay_) public { require( msg.sender == address(this), “…
|
I have a deposit function, similar as of DEXs, which mints some LPs on deposit. function deposit() public payable returns (uint256) { uint256 ethReserve = address(this).balance – msg.value; …
|
A person on Twitter told me about this DApp that gives her 1% ROI each day and since I was new to crypto and her lies was really believable to me and I had really big FOMO. I first put 100 USDT into …
|