diff --git a/rpc/src/v1/impls/eth.rs b/rpc/src/v1/impls/eth.rs index c66f04355..01625e9f9 100644 --- a/rpc/src/v1/impls/eth.rs +++ b/rpc/src/v1/impls/eth.rs @@ -410,9 +410,11 @@ impl Eth for EthClient let transaction: EthTransaction = transaction_request.into(); let signed_transaction = transaction.sign(&secret); - to_value(&client.call(&signed_transaction) - .map(|e| Bytes::new(e.output)) - .unwrap_or(Bytes::default())) + let output = client.call(&signed_transaction) + .map(|e| Bytes::new(e.output)) + .unwrap_or(Bytes::default()); + + to_value(&output) }, Err(_) => { to_value(&Bytes::default()) } }