Fix balance increase.

This commit is contained in:
Tomasz Drwięga
2017-08-15 10:07:00 +02:00
parent 60f6a3fed3
commit a34bea1dad
3 changed files with 5 additions and 15 deletions

View File

@@ -34,6 +34,7 @@ pub fn sign_call<B: MiningBlockChainClient, M: MinerService>(
Ok(Transaction {
nonce: request.nonce.unwrap_or_else(|| client.latest_nonce(&from)),
action: request.to.map_or(Action::Create, Action::Call),
// gas: request.gas.unwrap_or(U256::one() << 100),
gas: request.gas.unwrap_or(U256::max_value()),
gas_price: request.gas_price.unwrap_or_else(|| default_gas_price(&**client, &**miner)),
value: request.value.unwrap_or(0.into()),