From 04aa7b84b71bfd6bc0017f68bbd6cd55f488113c Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:04:13 +0700 Subject: [PATCH] fix: formatting --- drink/src/session.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drink/src/session.rs b/drink/src/session.rs index e0dcdb8..f43ba0d 100644 --- a/drink/src/session.rs +++ b/drink/src/session.rs @@ -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()); @@ -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::()