diff --git a/core/api/src/jsonrpc/error.rs b/core/api/src/jsonrpc/error.rs index 67da32e96..e6d75ba95 100644 --- a/core/api/src/jsonrpc/error.rs +++ b/core/api/src/jsonrpc/error.rs @@ -51,8 +51,6 @@ pub enum RpcError { InvalidFromBlockAndToBlockUnion, #[display(fmt = "Invalid filter id {}", _0)] CannotFindFilterId(u64), - #[display(fmt = "Invalid request params {}", _0)] - InvalidRequestParams(U256), #[display(fmt = "EVM error {}", "decode_revert_msg(&_0.ret)")] Evm(TxResp), @@ -90,7 +88,6 @@ impl RpcError { RpcError::InvalidRewardPercentiles(_, _) => -40020, RpcError::InvalidFromBlockAndToBlockUnion => -40021, RpcError::CannotFindFilterId(_) => -40022, - RpcError::InvalidRequestParams(_) => -40023, RpcError::Evm(_) => -49998, RpcError::Internal(_) => -49999, @@ -132,7 +129,6 @@ impl From for ErrorObjectOwned { ErrorObject::owned(err_code, err, none_data) } RpcError::CannotFindFilterId(_) => ErrorObject::owned(err_code, err, none_data), - RpcError::InvalidRequestParams(_) => ErrorObject::owned(err_code, err, none_data), RpcError::Evm(resp) => { ErrorObject::owned(err_code, err.clone(), Some(vm_err(resp.clone()))) diff --git a/core/api/src/jsonrpc/impl/axon.rs b/core/api/src/jsonrpc/impl/axon.rs index b36075704..5c7f59477 100644 --- a/core/api/src/jsonrpc/impl/axon.rs +++ b/core/api/src/jsonrpc/impl/axon.rs @@ -65,7 +65,7 @@ impl AxonRpcServer for AxonRpcImpl { Ok(ret) } - async fn get_proposal_by_number(&self, block_number: U256) -> RpcResult { + async fn get_proposal_by_number(&self, block_number: U64) -> RpcResult { let block_number = block_number.low_u64(); let prev_state_root = if block_number == 0 {