Skip to content

Commit

Permalink
Remove unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Jul 8, 2024
1 parent 84fd25e commit 5d554f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/contract_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ fn get_error_schema(
/// overwritten with other meanings in the smart contract logic). No guarantee
/// are given as such that the meaning of the decoded reject reason haven't been
/// altered by the smart contract logic.
pub async fn decode_smart_contract_revert(
pub fn decode_smart_contract_revert(
return_value: Option<ReturnValue>,
reject_reason: RejectReason,
schema: &Option<VersionedModuleSchema>,
Expand Down Expand Up @@ -1177,8 +1177,7 @@ impl<Type> ContractClient<Type> {
&self.schema,
receive_name,
&self.contract_name,
)
.await?;
)?;

Ok(InvokeContractOutcome::Failure(RejectedTransaction {
payload: transactions::Payload::Update { payload },
Expand Down

0 comments on commit 5d554f6

Please sign in to comment.