Skip to content

Commit

Permalink
Merge pull request #42 from burnt-labs/chore/remove-dupe-check
Browse files Browse the repository at this point in the history
Remove Dupe Empty Signature Check
  • Loading branch information
ash-burnt authored Dec 20, 2024
2 parents 34900c9 + 0771046 commit 127e84b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions contracts/account/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,13 @@ pub fn sudo(deps: DepsMut, env: Env, msg: AccountSudoMsg) -> ContractResult<Resp
cred_bytes,
simulate,
..
} => {
let cred_bytes = cred_bytes.ok_or(ContractError::EmptySignature)?;
execute::before_tx(
deps.as_ref(),
&env,
&Binary::from(tx_bytes.as_slice()),
Some(Binary::from(cred_bytes.as_slice())).as_ref(),
simulate,
)
}
} => execute::before_tx(
deps.as_ref(),
&env,
&Binary::from(tx_bytes.as_slice()),
cred_bytes.as_ref(),
simulate,
),
AccountSudoMsg::AfterTx { .. } => execute::after_tx(),
}
}
Expand Down

0 comments on commit 127e84b

Please sign in to comment.