Skip to content

Commit

Permalink
fix: issues after merge -- compiles!
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwht committed Jan 25, 2025
1 parent 8ee7443 commit e90f233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions crates/env/src/engine/off_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ where
>::Type
as crate::reflect::ContractMessageDecoder
>::Type
as scale::Decode
>::decode(&mut &input[..])
as DecodeDispatch
>::decode_dispatch(&mut &input[..])
.unwrap_or_else(|e| panic!("Failed to decode constructor call: {:?}", e));

crate::reflect::ExecuteDispatchable::execute_dispatchable(dispatch)
Expand Down Expand Up @@ -678,8 +678,8 @@ impl TypedEnvBackend for EnvInstance {
>::Type
as crate::reflect::ContractConstructorDecoder
>::Type
as scale::Decode
>::decode(&mut &input[..])
as DecodeDispatch
>::decode_dispatch(&mut &input[..])
.unwrap_or_else(|e| panic!("Failed to decode constructor call: {:?}", e));
crate::reflect::ExecuteDispatchable::execute_dispatchable(dispatch)
.unwrap_or_else(|e| panic!("Constructor call failed: {:?}", e));
Expand Down
4 changes: 0 additions & 4 deletions crates/env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ use self::backend::{
};
pub use self::{
api::*,
contract::{
ContractEnv,
ContractReference,
},
error::{
Error,
Result,
Expand Down

0 comments on commit e90f233

Please sign in to comment.