Skip to content

Commit

Permalink
Merge branch 'release/0.8.0' into feature/add-odra-macros-crate
Browse files Browse the repository at this point in the history
  • Loading branch information
kpob committed Nov 17, 2023
2 parents 8dbf9a1 + 7cbd919 commit 4a7af92
Show file tree
Hide file tree
Showing 14 changed files with 554 additions and 87 deletions.
40 changes: 22 additions & 18 deletions examples2/src/counter_pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,29 +196,33 @@ mod __counter_pack_test_parts {

impl CounterPackHostRef {
pub fn get_count(&self, index_a: u8, index_b: u8) -> u32 {
self.env.call_contract(
&self.address,
CallDef::new(
String::from("get_count"),
runtime_args! {
"index_a" => index_a,
"index_b" => index_b
}
self.env
.call_contract(
&self.address,
CallDef::new(
String::from("get_count"),
runtime_args! {
"index_a" => index_a,
"index_b" => index_b
}
)
)
).unwrap()
.unwrap()
}

pub fn increment(&self, index_a: u8, index_b: u8) {
self.env.call_contract(
&self.address,
CallDef::new(
String::from("increment"),
runtime_args! {
"index_a" => index_a,
"index_b" => index_b
}
self.env
.call_contract(
&self.address,
CallDef::new(
String::from("increment"),
runtime_args! {
"index_a" => index_a,
"index_b" => index_b
}
)
)
).unwrap()
.unwrap()
}
}

Expand Down
Loading

0 comments on commit 4a7af92

Please sign in to comment.