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.
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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)....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
evm × 1008solidity × 430
go-ethereum × 94
opcode × 91
contract-development × 84
gas × 78
bytecode × 60
blockchain × 57
transactions × 49
assembly × 46
remix × 42
storage × 36
contract-invocation × 34
contract-design × 30
web3js × 29
contract-deployment × 21
security × 21
etherscan × 20
ether × 19
mining × 19
memory × 16
abi × 15
delegatecall × 15
yellow-paper × 15
yul × 15