1
1
// Copyright (c) Mysten Labs, Inc.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
- // TODO remove after the functions are implemented
5
- #![ allow( unused_variables) ]
6
- #![ allow( dead_code) ]
7
-
8
4
use async_trait:: async_trait;
9
5
use jsonrpsee:: core:: RpcResult ;
10
6
use jsonrpsee:: RpcModule ;
@@ -208,9 +204,9 @@ impl ReadApiServer for ReadApiV2 {
208
204
209
205
async fn try_get_past_object (
210
206
& self ,
211
- object_id : ObjectID ,
212
- version : SequenceNumber ,
213
- options : Option < SuiObjectDataOptions > ,
207
+ _object_id : ObjectID ,
208
+ _version : SequenceNumber ,
209
+ _options : Option < SuiObjectDataOptions > ,
214
210
) -> RpcResult < SuiPastObjectResponse > {
215
211
Err ( jsonrpsee:: types:: error:: CallError :: Custom (
216
212
jsonrpsee:: types:: error:: ErrorCode :: MethodNotFound . into ( ) ,
@@ -220,8 +216,8 @@ impl ReadApiServer for ReadApiV2 {
220
216
221
217
async fn try_multi_get_past_objects (
222
218
& self ,
223
- past_objects : Vec < SuiGetPastObjectRequest > ,
224
- options : Option < SuiObjectDataOptions > ,
219
+ _past_objects : Vec < SuiGetPastObjectRequest > ,
220
+ _options : Option < SuiObjectDataOptions > ,
225
221
) -> RpcResult < Vec < SuiPastObjectResponse > > {
226
222
Err ( jsonrpsee:: types:: error:: CallError :: Custom (
227
223
jsonrpsee:: types:: error:: ErrorCode :: MethodNotFound . into ( ) ,
@@ -291,7 +287,7 @@ impl ReadApiServer for ReadApiV2 {
291
287
292
288
async fn get_loaded_child_objects (
293
289
& self ,
294
- digest : TransactionDigest ,
290
+ _digest : TransactionDigest ,
295
291
) -> RpcResult < SuiLoadedChildObjectsResponse > {
296
292
Err ( jsonrpsee:: types:: error:: CallError :: Custom (
297
293
jsonrpsee:: types:: error:: ErrorCode :: MethodNotFound . into ( ) ,
0 commit comments