From aafbc0db3c577b892d4a3de47c36739341fd3365 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Tue, 16 Apr 2024 06:43:56 +0800 Subject: [PATCH] feat: oz 0.11.0 account class --- src/account.rs | 7 ++++++- src/subcommands/account/oz/init.rs | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/account.rs b/src/account.rs index 3308ede..d124a25 100644 --- a/src/account.rs +++ b/src/account.rs @@ -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, @@ -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] = &[ diff --git a/src/subcommands/account/oz/init.rs b/src/subcommands/account/oz/init.rs index 270bee4..10e3c74 100644 --- a/src/subcommands/account/oz/init.rs +++ b/src/subcommands/account/oz/init.rs @@ -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 {