Hot answers tagged

2 votes

How was the Ethereum 0x0 address generated?

It was not generated. Addresses can exist without having a matching private key. No one can access tokens at this address.
Mikko Ohtamaa's user avatar
2 votes

How do old smart contracts that contain certain opcodes behave when those opcodes get deprecated/removed in hard fork upgrades?

A contract that uses an opcode that is subsequently removed would no longer be working (its behavior would be unspecifiable). However, to my knowledge, no opcode has ever been removed from Ethereum. ...
Paul Razvan Berg's user avatar
1 vote

Solidity - Function Selector Loading onto the stack: why DIV instead of SHR?

That is probably due to using non-updated documentation or tutorials, which refers to an old Solidity compiler. The procedure you mention using SHR has been in place as default for the compiler, with ...
Giuseppe Bertone's user avatar
1 vote

Is it possible to use CREATE2 without going through the Smart Contract's function?

Yes, it's similar to the CREATE method, you just need to specify the salt. See the docs for details. Example: // CREATE ChildContract newContract = new ChildContract(args); // CREATE2 ChildContract ...
0xSanson's user avatar
  • 2,754
1 vote

Is it possible to use CREATE2 without going through the Smart Contract's function?

To utilize CREATE2 without directly calling a smart contract's inline assembly function, you typically need to interact with the Ethereum Virtual Machine (EVM) or use libraries that provide this ...
Canard Coca's user avatar
1 vote

Rebasing tokenomics

The reason I asked for the value of n is because it is the only part affecting your code. I tried implementing the same logic and guess what, I found out that when I gave undervalue a value of 1 ether ...
Zartaj Afser's user avatar
  • 2,180
1 vote
Accepted

How was the Ethereum 0x0 address generated?

Technically, you form an Ethereum address by getting the first 20 bytes of the keccak256 of the public key. Multiple private keys can generate a single address, and ...
Giuseppe Bertone's user avatar
1 vote

Is there a way to stop wallet homomorph attacks without ditching the create2 opcode?

Even without create2, people could still do address poisoning attacks...it would just be a little harder to generate the addresses but still not hard enough to make a difference.
user127148's user avatar
1 vote

provider.broadcastTransaction is not a function

I think that issue can be caused from differences between the hardhat network and the Avalanche Fuji testnet. It's possible that the contract function relies on some unique characteristic of the ...
Ari Setiawan's user avatar
1 vote
Accepted

Gas griefing in "typed" external calls

Gas griefing is applicable to all forms of external calls. Your question isn't that simple. Following the 63/64 rule of EIP-150, if by the time you reach your ITokenTreasury(tokenTreasury)....
Dimitris Sfounis's user avatar

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