Top new questions this week:
|
I'm running the test outlined below using Hardhat. The smart contract has a function to output 'msg.sender.balance', and the test file calls this function, then waits for the next block, then calls ...
|
struct User {
bool isActive;
uint256 userAge;
}
mapping(userId => User) public users;
method 1;
function example(uint256 userId) public {
User memory user = users[userId];
bool ...
|
I'm trying to solve the Damn vulnerable Defi challenge's Level 2 - Naive Receiver.
We have to drain the user's balance by exploiting the missing access control allowing anyone to be the borrower and ...
|
I am currently trying to figure out a concrete way to perform fixed point division on two 128.128 uint256 numbers. This seems like a fairly straightforward thing, but haven't been able to code a ...
|
I am exploring a new domain and wanted to understand the difference between ERC721, ERC20, and a smart contract? ERC721 is "a standard for representing ownership of non-fungible tokens," but ...
|
E.G: 1-NFT minted sent to 1-person, But in a broader perspective. e.g: 100 NFT's to 100 people, In the same function using ERC1155. I want to mint and transfer those 100 nfts in the same function. To ...
|
I've been reading up on crypto recently, and saw that ethereum is going to change to pos in the future.
I imagine that this entails all miners downloading an updated mining client? However, two things:...
|
Greatest hits from previous weeks:
|
What criteria does a valid Ethereum address need to fulfill? Is it just a random number in hexadecimal? Or does it need to be derived in a specific way, according to some cryptographic algorithms? ...
|
Okay, so obviously I bought a scamcoin, but theres this one guy who still managed to sell it, most likely by using a bot. I want to sell the token as well, the liquidity isn't pulled and I would make ...
|
Instead of transferring my ERC20 token to my wallet, I accidentally sent it to the contract itself (the contract, with source code, is here).
Would the contract creator be able to send it back to me?...
|
I have tried googling it as well as finding it here.
Many people here talk about it, but what actually is a DAG?
|
I have sent ETH to a contract address, and it "failed" the transaction saying it is: Warning! Error encountered during contract execution [Reverted]
contract address and transaction failure ...
|
There are several options for storing Ether :
Accounts
Mist/Geth accounts.
Paper wallets.
Icebox Air gapped offline signing of transactions
Wallet
Mist Multi-signature.
In short there are a lot ...
|
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?
|
Last I recall, Ethereum 2.0 was suppose to be released a few years back. But its always "soon" on the horizon. How many times have it been pushed back? When was the initial date it was ...
|
This is from the account part of the Ethereum Docs, 4 fields of an account were described of which i am unable to understand this one.
(storageRoot)
|
Curve Voting Escrow has gradually become the de facto approach for DeFi projects of gaining, decaying and consuming voting power through the functions on their smart contract. The original contract ...
|