Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build db3-runtime package #94

Closed
jingchen2222 opened this issue Oct 2, 2022 · 0 comments
Closed

Fail to build db3-runtime package #94

jingchen2222 opened this issue Oct 2, 2022 · 0 comments
Labels
Milestone

Comments

@jingchen2222
Copy link
Collaborator

jingchen2222 commented Oct 2, 2022

Bug description

  • Would you like to work on a fix? [y/n]

To Reproduce

Steps to reproduce the behavior:

cargo build --package db3-runtime --release

Expected behavior

build package successfully

Screenshots

error[E0405]: cannot find trait `DBAccountApi` in crate `sqldb_rpc_runtime_api`
    --> runtime/src/lib.rs:1936:33
     |
1936 |     impl sqldb_rpc_runtime_api::DBAccountApi<Block, AccountId> for Runtime {
     |                                 ^^^^^^^^^^^^ not found in `sqldb_rpc_runtime_api`
     |
help: consider importing this trait
     |
25   | use sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi::DBAccountApi;
     |
help: if you import `DBAccountApi`, refer to it directly
     |
1936 -     impl sqldb_rpc_runtime_api::DBAccountApi<Block, AccountId> for Runtime {
1936 +     impl DBAccountApi<Block, AccountId> for Runtime {
     |

error[E0425]: cannot find function `is_ns_owner_call_api_at` in module `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
    --> runtime/src/lib.rs:1774:1
     |
1774 | / impl_runtime_apis! {
1775 | |     impl sp_api::Core<Block> for Runtime {
1776 | |         fn version() -> RuntimeVersion {
1777 | |             VERSION
...    |
2169 | |     }
2170 | | }
     | |_^ not found in `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
     |
     = note: this error originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function `is_ns_owner_native_call_generator` in module `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
    --> runtime/src/lib.rs:1774:1
     |
1774 | / impl_runtime_apis! {
1775 | |     impl sp_api::Core<Block> for Runtime {
1776 | |         fn version() -> RuntimeVersion {
1777 | |             VERSION
...    |
2169 | |     }
2170 | | }
     | |_^ not found in `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
     |
     = note: this error originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function `list_delegates_call_api_at` in module `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
    --> runtime/src/lib.rs:1774:1
     |
1774 | / impl_runtime_apis! {
1775 | |     impl sp_api::Core<Block> for Runtime {
1776 | |         fn version() -> RuntimeVersion {
1777 | |             VERSION
...    |
2169 | |     }
2170 | | }
     | |_^ not found in `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
     |
     = note: this error originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function `list_delegates_native_call_generator` in module `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
    --> runtime/src/lib.rs:1774:1
     |
1774 | / impl_runtime_apis! {
1775 | |     impl sp_api::Core<Block> for Runtime {
1776 | |         fn version() -> RuntimeVersion {
1777 | |             VERSION
...    |
2169 | |     }
2170 | | }
     | |_^ not found in `sqldb_rpc_runtime_api::runtime_decl_for_DBAccountApi`
     |
     = note: this error originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0405, E0425.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `db3-runtime` due to 5 previous errors

Environment

  • OS: Mac OS 10.15.7

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants