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 |
Gas is a 'sub-currency' which enables the EVM and Ethereum's decentralised computer to run -- with each operation, an amount of gas (proportional to the computational effort required to perform the operation) is consumed.
0
votes
Accepted
How to change a total supply of tokens on an existing ether contract?
First
You can deploy new contract with the same name, but with a new initial supply, there is no problem in that.
Second
According to this code your initial supply is defined on contract initiation …
0
votes
Accepted
Can a contract hold the leftover gas for later transactions
No. You can put some ether on contract’s balance, but contracts do not have a possibility to pay for transactions. There always should be a normal user account (i.e. not smart contract) paying for a t …
1
vote
What is the best way for my Dapp users to not pay gas fees?
The user could set the gasPrice to 0. Although this transaction would
most likely not be picked up by the miners, the Dapp provider could
mine all transaction going to his address.
This is an …
2
votes
Accepted
Is there anyway a smart contract creator can put a limit on the gasPrice(gwei) for a transac...
require(tx.gasprice < 5 * 1000000000);
From Block and transaction properties. Solidity Docs
2
votes
Accepted
How to make this function more gas efficient?
How could i make it more gas efficient?
You can change bits size of your uint's in struct.
If you are using uint256 you are using whole 32 byte chunk. … }
Execution cost: 46264 gas
uint64 struct
struct demo {
uint64 a;
uint64 b;
uint64 c;
}
Execution cost: 31314 gas
If the Solidity compiler can figure out the …
0
votes
Ethereum tx pending - gas price
Can I just withdraw all my
funds and send the tx again with a higher gas price and therfore make
my old tx invalid due to no funds. WOuld MEW allow that?
Not before you will get refunded. …
0
votes
Restricting payment from one account only
As Jesse Busman mentioned in comments, this is not yet possible directly in smart contracts. But you can try to register all the transaction costs and addresses (via events) which payed them so you wi …