-
Notifications
You must be signed in to change notification settings - Fork 16
Update runtime to use new rustc #199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the to_le_bytes over copying in the to_bytes method.
api/src/state.rs
Outdated
@@ -30,15 +30,15 @@ pub struct Log { | |||
pub transaction_log_index: Option<U256>, | |||
} | |||
|
|||
#[derive(Serialize, Deserialize, Debug)] | |||
#[derive(Serialize, Deserialize, Debug, Clone)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What changed that makes us need Clone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error[E0277]: the trait bound `ethereum_api::AccountState: std::clone::Clone` is not satisfied
--> src/lib.rs:109:1
|
109 | / with_api! {
110 | | create_contract_client!(runtime_ethereum, ethereum_api, api);
111 | | }
| |_^ the trait `std::clone::Clone` is not implemented for `ethereum_api::AccountState`
|
= note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<ethereum_api::AccountState>`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, this build worked fine without it: https://circleci.com/gh/oasislabs/runtime-ethereum/1436
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What changed that makes us need Clone?
No idea. I just do what cargo tells me to do.
error[E0277]: the trait bound `ethereum_api::AccountState: std::clone::Clone` is not satisfied
--> src/lib.rs:109:1
|
109 | / with_api! {
110 | | create_contract_client!(runtime_ethereum, ethereum_api, api);
111 | | }
| |_^ the trait `std::clone::Clone` is not implemented for `ethereum_api::AccountState`
= note: you can solve this by selling your soul to the Rust developers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see if I can revert and rebuild.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. still getting the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the gateway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Yep, |
IDK what's going on with |
Also can remove |
#198 but with a bit extra to keep the gateway happy