near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
124 stars 56 forks source link

dependency issue when trying to download genesis file #341

Open gamenautdips opened 1 year ago

gamenautdips commented 1 year ago

When trying to download genesis file using cargo run --release -- --home-dir ~/.near/testnet init --chain-id testnet --download-config --download-genesis

Getting the following dependency error

Compiling near-rosetta-rpc v0.0.0 (https://github.com/near/nearcore?rev=9a3edd1fd2b8ee6968be69b30593dd134c2da7fa#9a3edd1f) error[E0560]: struct ResponseWrapper<_, _> has no field named responder --> /home/dips/.cargo/git/checkouts/nearcore-5bf7818cf2261fd0/9a3edd1/chain/rosetta-rpc/src/lib.rs:76:1 76 #[api_v2_operation] ^^^^^^^^^^^^^^^^^^^ field does not exist
::: /home/dips/.cargo/registry/src/github.com-1ecc6299db9ec823/paperclip-core-0.5.2/src/v2/actix.rs:638:12 638 pub struct ResponseWrapper<T, H>(#[pin] pub T, pub H); --------------- ResponseWrapper<_, _> defined here
= note: this error originates in the attribute macro `api_v2_operation` (in Nightly builds, run with -Z macro-backtrace for more info)

help: ResponseWrapper<_, _> is a tuple struct, use the appropriate syntax | 76 | ResponseWrapper<, >(/ fields /)

khorolets commented 1 year ago

@gamenautdips Hey! Thanks for bringing this up.

Could you clarify what branch you use?

Also, do you follow our work? Are you aware that we have migrated from nearcore to near-lake-framework? Thus near-indexer-for-explorer doesn't have an init command anymore.

It would be helpful if you add a few words describing what you are trying to achieve so we can suggest you something.