openethereum / sol-rs

Solaris - Solidity testing framework in Rust.
GNU General Public License v3.0
54 stars 14 forks source link

Compile error (outdated dependencies) #42

Open stephenctw opened 4 years ago

stephenctw commented 4 years ago

Hello, I am wondering if this project is still active. If so, could you update the dependencies? I run into this error trying to compile the example.

error[E0308]: mismatched types
   --> /home/stephen/.cargo/git/checkouts/parity-dc9825eb65b3adf1/00b209a/ethcore/src/engines/authority_round/mod.rs:711:71
    |
711 |             io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(remaining))
    |                                                                                ^^^^^^^^^ expected u64, found u128
help: you can convert an `u128` to `u64` and panic if the converted value wouldn't fit
    |
711 |             io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(remaining.try_into().unwrap()))
    |                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> /home/stephen/.cargo/git/checkouts/parity-dc9825eb65b3adf1/00b209a/ethcore/src/engines/authority_round/mod.rs:727:72
    |
727 |                 io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(next_run_at))
    |                                                                                    ^^^^^^^^^^^ expected u64, found u128
help: you can convert an `u128` to `u64` and panic if the converted value wouldn't fit
    |
727 |                 io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(next_run_at.try_into().unwrap()))
    |                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

rustc 1.39.0 (4560ea788 2019-11-04)

Thank you!