Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 25, 2024
1 parent 061b422 commit 04aa7b8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drink/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ where
});

let ret = match &result.result {
Ok(exec_result) if exec_result.result.did_revert() =>
Err(SessionError::DeploymentReverted),
Ok(exec_result) if exec_result.result.did_revert() => {
Err(SessionError::DeploymentReverted)
},
Ok(exec_result) => {
let address = exec_result.account_id.clone();
self.record.push_deploy_return(address.clone());
Expand Down Expand Up @@ -576,8 +577,9 @@ where
});

let ret = match &result.result {
Ok(exec_result) if exec_result.did_revert() =>
Err(SessionError::CallReverted(exec_result.data.clone())),
Ok(exec_result) if exec_result.did_revert() => {
Err(SessionError::CallReverted(exec_result.data.clone()))
},
Ok(exec_result) => {
self.record.push_call_return(exec_result.data.clone());
self.record.last_call_return_decoded::<V>()
Expand Down

0 comments on commit 04aa7b8

Please sign in to comment.