Skip to content

Commit

Permalink
feat: oz 0.11.0 account class
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Apr 15, 2024
1 parent 99d5652 commit aafbc0d
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: FieldElement = FieldElement::ONE;

pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 13] = [
pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 14] = [
KnownAccountClass {
class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"),
variant: AccountVariantType::OpenZeppelinLegacy,
Expand Down Expand Up @@ -86,6 +86,11 @@ pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 13] = [
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.10.0 compiled with cairo v2.5.3",
},
KnownAccountClass {
class_hash: felt!("0x0450f568a8cb6ea1bcce446355e8a1c2e5852a6b8dc3536f495cdceb62e8a7e2"),
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.11.0 compiled with cairo v2.6.3",
},
];

pub const BUILTIN_ACCOUNTS: &[BuiltinAccount] = &[
Expand Down
4 changes: 2 additions & 2 deletions src/subcommands/account/oz/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ use crate::{
signer::SignerArgs,
};

/// OpenZeppelin account contract v0.8.0 compiled with cairo v2.3.1
/// OpenZeppelin account contract v0.11.0 compiled with cairo v2.6.3
const OZ_ACCOUNT_CLASS_HASH: FieldElement =
felt!("0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c");
felt!("0x0450f568a8cb6ea1bcce446355e8a1c2e5852a6b8dc3536f495cdceb62e8a7e2");

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

0 comments on commit aafbc0d

Please sign in to comment.