Top new questions this week:
|
In most solidity contracts, the first few opcodes generate the free memory pointer PUSH1 0x80 PUSH1 0x40 MSTORE This places the 0x80 value (128) at location 0x40 in memory. So, why don’t we start …
|
I wanted to do commit both on ERC20 Token and ETH. _addCommitment function is about update local commit value. It will be better if two functions that work the same function can be combined into one, …
|
Although I read the gas optimization report, I’m not sure why != 0 is better than > 0 for unsigned integer comparison. Example code is below. require(numOfRotations > 0, “Empty arrays”)…
|
Did a quick check in subgraph, and found ids with <1 health factor. Should not they be liquidated instantly? like 0xc49b59301be4d9660961f62fbeea0e234e3a53b5, …
|
I am trying to run npx create-react-app my-safe-app –template @gnosis.pm/cra-template-safe-app but I am getting this error. I’m just following the instructions at github.com/safe-global/…
|
I am trying to understand why Ethereum decided to create Gasper, instead of using an established algorithm like Tendermint. It seems like Ethereum is now trying to gain single-slot finality (like that …
|
Actually im wondering if in order to use a mapping from a 3d party contract in an other contract, can i devlare the mapping in the interface and use it like Mycontract.mapping() and view/modifiy it ,…
|
Greatest hits from previous weeks:
|
Before you jump all over this a duplicate question. I did read things related to DAG like here: What actually is a DAG? But that doesn’t answer my question, what does it mean when my mining pool …
|
If the contract issuer wants to have a way to upgrade the contract code, so that account data and other things carry over, can Ethereum provide this? Also can this be done without changing the …
|
I noticed that address’s offer two member functions that perform the transfer of ether to the specified address. send returns false upon failure and transfer raises an exception. In the Solidity …
|
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 …
|
This is such a basic question, but I can not figure out how to import a plain, unencrypted private key into geth or mist? I tried geth account import 7[……]bla but it seems this command is always …
|
I’ve been running Geth (latest version) for around 12 hours and it’s still not finished. The command prompt shows this : INFO [05-21|12:05:00] Imported new chain segment blocks=1 txs=…
|
How fast is Ethereum blockchain growing and how big is it likely to get in the future? Is it still about 1 GB per month? Are there any data pruning or compression algorithms in place or planned to be …
|
Can you answer these questions?
|
I want translate code to assembly, but i don’t understand , how i can get data from string ( or bytes) Example String: 123 –> uint 123 for (uint256 i = 0; i < bytes(_str).length; i++) { …
|
I have a vyper contract, as such: @external def add_two(my_number: uint256) -> uint256: two: uint256 = 123456 return my_number + two When you compile this (with 0.3.6), a piece of the …
|
Is there any approach to deploy smart contracts in hardhat using my gnosis safe as deployer? I had a look over hardhat plugins but I haven’t found anything. Any idea?
|