Skip to content

Commit

Permalink
fix declare v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jul 26, 2024
1 parent 1135e02 commit 10b4f89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/katana/primitives/src/utils/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ pub fn compute_declare_v3_tx_hash(
account_deployment_data: &[FieldElement],
is_query: bool,
) -> FieldElement {
let data_hash = poseidon_hash_many(account_deployment_data);

poseidon_hash_many(&[
PREFIX_DECLARE,
if is_query { QUERY_VERSION_OFFSET + FieldElement::THREE } else { FieldElement::THREE }, /* version */
Expand All @@ -170,8 +168,8 @@ pub fn compute_declare_v3_tx_hash(
poseidon_hash_many(paymaster_data),
chain_id,
nonce,
data_hash,
encode_da_mode(nonce_da_mode, fee_da_mode),
poseidon_hash_many(account_deployment_data),
class_hash,
compiled_class_hash,
])
Expand Down

0 comments on commit 10b4f89

Please sign in to comment.