Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

rpc: the arguments for api method are incorrect #14728

Open
@Snikko

Description

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

I want to add rpc function in my substrate blockchain to supply restful apis for others.But some mistake occur when the project is built.The errors show like this:

45 | api.get_value(&at,v).map_err(runtime_error_into_rpc_err)
| --------- ^^^ expected associated type, found &BlockId<_>
| |
| arguments to this method are incorrect

1691463385285

Steps to reproduce

1、add rpc configuration to the prject correctly
2、build the project
3、errors like this:

45 | api.get_value(&at,v).map_err(runtime_error_into_rpc_err)
| --------- ^^^ expected associated type, found &BlockId<_>
| |
| arguments to this method are incorrect

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions