diff --git a/rpc/src/v1/impls/eth.rs b/rpc/src/v1/impls/eth.rs index 3daa6275c..34a0c2f45 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()) } }