Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.
1
vote
Accepted
Implement tokenfallback on an existing ERC20 Token
You don't.
That's actually the biggest drawback of the ERC20 token standard, and that's why ERC777 tokens were invented. Everyone should be using ERC777 tokens instead.
The correct way of accepting ER …
1
vote
Solidity bool size in Structs
Note that a bool is a uint8 under the hood, this means it's using up 8 bits while it only needs 1 bit.
It's more efficient to pack multiple booleans in a uint256, and extract them with a mask. You can …
1
vote
0
answers
1k
views
UniswapV2 addLiquidityETH() reverting when trying to deploy to ganache locally
I'm trying to locally deploy a contract similar to sushiswap, but I keep getting a revert from addLiquidityETH(), no message other than VM Exception while processing transaction: revert
//module.expor …
1
vote
how to see contract that only has bytecode
Like @goodvibrations said:
You can't see the actual source code unless the creator shared it and verified it on etherscan, however etherscan can decompile it for you and then it's pretty readable.
#
# …