Skip to content

Commit

Permalink
ScCallStep - deprecated call_expect
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jul 14, 2023
1 parent aa9ff78 commit 59a05b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/scenario/src/scenario/model/step/step_sc_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ impl ScCallStep {
/// - "expect"
/// - "out"
/// - "status" set to 0
#[deprecated(
since = "0.42.0",
note = "Please use `call` followed by `expect`, there is no point in having a method that does both."
)]
pub fn call_expect<CC, ExpectedResult>(
self,
contract_call: CC,
Expand All @@ -141,8 +145,7 @@ impl ScCallStep {
CC: ContractCall<StaticApi>,
ExpectedResult: CodecFrom<CC::OriginalResult> + TopEncodeMulti,
{
let typed = self.call(contract_call);
typed.expect_value(expected_value)
self.call(contract_call).expect_value(expected_value)
}

pub fn save_response(&mut self, tx_response: TxResponse) {
Expand Down

0 comments on commit 59a05b3

Please sign in to comment.