Skip to content

Commit 8f3707d

Browse files
committed
feat: support new Argent contract class hash
Adds support for fetching the new account contract. `account init` now uses the new hash too.
1 parent 3e41c01 commit 8f3707d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/account.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::signer::{AnySigner, SignerArgs, SignerResolutionTask};
2020

2121
const BRAAVOS_SIGNER_TYPE_STARK: FieldElement = FieldElement::ONE;
2222

23-
pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 8] = [
23+
pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 9] = [
2424
KnownAccountClass {
2525
class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"),
2626
variant: AccountVariantType::OpenZeppelinLegacy,
@@ -49,6 +49,11 @@ pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 8] = [
4949
KnownAccountClass {
5050
class_hash: felt!("0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003"),
5151
variant: AccountVariantType::Argent,
52+
description: "Argent X official account (as of 5.7.0)",
53+
},
54+
KnownAccountClass {
55+
class_hash: felt!("0x029927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b"),
56+
variant: AccountVariantType::Argent,
5257
description: "Argent X official account",
5358
},
5459
KnownAccountClass {

src/subcommands/account/argent/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use crate::{
1717
signer::SignerArgs,
1818
};
1919

20-
/// Official hashes used as of extension version 5.7.0
20+
/// Official hashes used as of extension version 5.13.1
2121
const ARGENT_CLASS_HASH: FieldElement =
22-
felt!("0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003");
22+
felt!("0x029927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b");
2323

2424
#[derive(Debug, Parser)]
2525
pub struct Init {

0 commit comments

Comments
 (0)