diff --git a/lib/ain-grpc/src/rpc.rs b/lib/ain-grpc/src/rpc.rs index 03743596b5..3b7c9d2c91 100644 --- a/lib/ain-grpc/src/rpc.rs +++ b/lib/ain-grpc/src/rpc.rs @@ -18,7 +18,7 @@ use std::sync::Arc; #[rpc(server)] pub trait MetachainRPC { #[method(name = "eth_call")] - fn call(&self, input: EthTransactionInfo) -> Result, jsonrpsee::core::Error>; + fn call(&self, input: EthTransactionInfo) -> Result; #[method(name = "eth_accounts")] fn accounts(&self) -> Result, jsonrpsee::core::Error>; @@ -114,7 +114,7 @@ impl MetachainRPCModule { } impl MetachainRPCServer for MetachainRPCModule { - fn call(&self, input: EthTransactionInfo) -> Result, jsonrpsee::core::Error> { + fn call(&self, input: EthTransactionInfo) -> Result { let EthTransactionInfo { from, to, @@ -136,7 +136,7 @@ impl MetachainRPCServer for MetachainRPCModule { .evm .call(from, to, value, data.as_bytes(), gas, vec![]); - Ok(Hex::encode(data)) + Ok(hex::encode(data)) } fn accounts(&self) -> Result, jsonrpsee::core::Error> {