From 60f6a3fed3dd2e41657ab658eda8140bc78a9790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 14 Aug 2017 16:59:46 +0200 Subject: [PATCH] Increase default gas limit for eth_call. --- rpc/src/v1/helpers/fake_sign.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc/src/v1/helpers/fake_sign.rs b/rpc/src/v1/helpers/fake_sign.rs index 21cb0cfe1..e5d2c905d 100644 --- a/rpc/src/v1/helpers/fake_sign.rs +++ b/rpc/src/v1/helpers/fake_sign.rs @@ -18,6 +18,7 @@ use std::sync::Arc; use ethcore::client::MiningBlockChainClient; use ethcore::miner::MinerService; use ethcore::transaction::{Transaction, SignedTransaction, Action}; +use util::U256; use jsonrpc_core::Error; use v1::helpers::CallRequest; @@ -33,7 +34,7 @@ pub fn sign_call( 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(50_000_000.into()), + 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()), data: request.data.unwrap_or_default(),