From 2a2e672e5057475a20a6be096e9060515be84bf9 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 30 Jun 2024 06:45:34 +0800 Subject: [PATCH] feat: oz account contract 0.14.0 --- src/account.rs | 7 ++++++- src/subcommands/account/oz/init.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/account.rs b/src/account.rs index 5305479..557bbfc 100644 --- a/src/account.rs +++ b/src/account.rs @@ -20,7 +20,7 @@ use crate::signer::{AnySigner, SignerArgs, SignerResolutionTask}; const BRAAVOS_SIGNER_TYPE_STARK: Felt = Felt::ONE; -pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 16] = [ +pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 17] = [ KnownAccountClass { class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"), variant: AccountVariantType::OpenZeppelinLegacy, @@ -101,6 +101,11 @@ pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 16] = [ variant: AccountVariantType::OpenZeppelin, description: "OpenZeppelin account contract v0.13.0 compiled with cairo v2.6.3", }, + KnownAccountClass { + class_hash: felt!("0x04343194a4a6082192502e132d9e7834b5d9bfc7a0c1dd990e95b66f85a66d46"), + variant: AccountVariantType::OpenZeppelin, + description: "OpenZeppelin account contract v0.14.0 compiled with cairo v2.6.4", + }, ]; pub const BUILTIN_ACCOUNTS: &[BuiltinAccount] = &[ diff --git a/src/subcommands/account/oz/init.rs b/src/subcommands/account/oz/init.rs index 90642b2..1b15159 100644 --- a/src/subcommands/account/oz/init.rs +++ b/src/subcommands/account/oz/init.rs @@ -15,7 +15,7 @@ use crate::{ signer::SignerArgs, }; -/// OpenZeppelin account contract v0.13.0 compiled with cairo v2.6.3 +/// OpenZeppelin account contract v0.14.0 compiled with cairo v2.6.4 const OZ_ACCOUNT_CLASS_HASH: Felt = felt!("0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6");