fluidex / rollup-state-manager

5 stars 6 forks source link

L1 tx hash #207

Closed HAOYUatHZ closed 2 years ago

HAOYUatHZ commented 2 years ago
error[E0422]: cannot find struct, variant or union type `Tx` in module `l2_block_query_response`
  --> src/grpc/controller.rs:61:48
   |
61 |             .map(|tx| l2_block_query_response::Tx {
   |                                                ^^ not found in `l2_block_query_response`

error[E0308]: mismatched types
  --> src/grpc/controller.rs:75:25
   |
75 |             l1_tx_hash: l2_block.l1_tx_hash,
   |                         ^^^^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found enum `std::option::Option`
   |
   = note: expected struct `std::string::String`
                found enum `std::option::Option<std::string::String>`
note: return type inferred to be `std::string::String` here
  --> src/grpc/controller.rs:48:24
   |
48 |         let l2_block = get_l2_block_by_id(&self.db_pool, block_id).await?;
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0063]: missing field `decoded_txs` in initializer of `orchestra::rpc::rollup::L2BlockQueryResponse`
  --> src/grpc/controller.rs:67:12
   |
67 |         Ok(L2BlockQueryResponse {
   |            ^^^^^^^^^^^^^^^^^^^^ missing `decoded_txs`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0063, E0308, E0422.
For more information about an error, try `rustc --explain E0063`.
error: could not compile `rollup_state_manager`

To learn more, run the command again with --verbose.
silathdiir commented 2 years ago

I added l1_tx_hash to PR https://github.com/fluidex/rollup-state-manager/pull/203 😂

HAOYUatHZ commented 2 years ago

seems we should finish https://github.com/fluidex/rollup-state-manager/pull/203 first