From da5ba4ccc80fcbca17469ec22e14a07b0fdd5963 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Tue, 4 Sep 2018 16:33:14 +0800 Subject: [PATCH] Fix a bug in evmbin initial_gas display (#9457) --- evmbin/src/info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evmbin/src/info.rs b/evmbin/src/info.rs index d9ee6729e..f2102f017 100644 --- a/evmbin/src/info.rs +++ b/evmbin/src/info.rs @@ -114,7 +114,7 @@ pub fn run_transaction( informant.set_gas(env_info.gas_limit); - let result = run(&spec, env_info.gas_limit, pre_state, |mut client| { + let result = run(&spec, transaction.gas, pre_state, |mut client| { let result = client.transact(env_info, transaction, trace::NoopTracer, informant); match result { TransactResult::Ok { state_root, gas_left, .. } if state_root != post_root => {