Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Return clippy changes back to minimize conflicts
  • Loading branch information
xgreenx committed Dec 11, 2022
commit 77993e9f864e64e2da79dea45465628d1eeafaff
9 changes: 6 additions & 3 deletions examples/delegator/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,26 @@ mod delegator {
.salt_bytes(salt)
.instantiate()
.unwrap_or_else(|error| {
panic!("failed at instantiating the Accumulator contract: {error:?}")
panic!(
"failed at instantiating the Accumulator contract: {:?}",
error
)
});
let adder = AdderRef::new(accumulator.clone())
.endowment(total_balance / 4)
.code_hash(adder_code_hash)
.salt_bytes(salt)
.instantiate()
.unwrap_or_else(|error| {
panic!("failed at instantiating the Adder contract: {error:?}")
panic!("failed at instantiating the Adder contract: {:?}", error)
});
let subber = SubberRef::new(accumulator.clone())
.endowment(total_balance / 4)
.code_hash(subber_code_hash)
.salt_bytes(salt)
.instantiate()
.unwrap_or_else(|error| {
panic!("failed at instantiating the Subber contract: {error:?}")
panic!("failed at instantiating the Subber contract: {:?}", error)
});
Self {
which: Which::Adder,
Expand Down