Skip to content

Commit

Permalink
feat: support new Argent contract class hash
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhducduy authored and xJonathanLEI committed Jul 30, 2024
1 parent 1a028fb commit 85da53d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::signer::{AnySigner, SignerArgs, SignerResolutionTask};

const BRAAVOS_SIGNER_TYPE_STARK: Felt = Felt::ONE;

pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 17] = [
pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 18] = [
KnownAccountClass {
class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"),
variant: AccountVariantType::OpenZeppelinLegacy,
Expand Down Expand Up @@ -61,6 +61,11 @@ pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 17] = [
variant: AccountVariantType::Argent,
description: "Argent X official account (as of 5.13.1)",
},
KnownAccountClass {
class_hash: felt!("0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f"),
variant: AccountVariantType::Argent,
description: "Argent X official account (as of 5.16.3) compiled with cairo v2.6.3",
},
KnownAccountClass {
class_hash: felt!("0x04c6d6cf894f8bc96bb9c525e6853e5483177841f7388f74a46cfda6f028c755"),
variant: AccountVariantType::OpenZeppelin,
Expand Down
4 changes: 2 additions & 2 deletions src/subcommands/account/argent/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ use crate::{
signer::SignerArgs,
};

/// Official hashes used as of extension version 5.13.1
/// Official hashes used as of extension version 5.16.3 compiled with cairo v2.6.3
const ARGENT_CLASS_HASH: Felt =
felt!("0x029927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b");
felt!("0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f");

#[derive(Debug, Parser)]
pub struct Init {
Expand Down

0 comments on commit 85da53d

Please sign in to comment.