From 5a5cc1aff40f79f540d99263bb255700d1d36a36 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Fri, 15 Sep 2023 21:59:53 +0000 Subject: [PATCH] feat: add oz account v0.5.0 to registry This account is used by `katana` from `dojo` for pre-funded accounts. Having this class registered helps Starkli work better with `katana`. --- src/account.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/account.rs b/src/account.rs index 597dac5..94204ab 100644 --- a/src/account.rs +++ b/src/account.rs @@ -20,12 +20,17 @@ use crate::path::ExpandedPathbufParser; const BRAAVOS_SIGNER_TYPE_STARK: FieldElement = FieldElement::ONE; -pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 4] = [ +pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 5] = [ KnownAccountClass { class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"), variant: AccountVariantType::OpenZeppelin, description: "OpenZeppelin account contract v0.6.1 compiled with cairo-lang v0.11.0.2", }, + KnownAccountClass { + class_hash: felt!("0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f"), + variant: AccountVariantType::OpenZeppelin, + description: "OpenZeppelin account contract v0.5.0 compiled with cairo-lang v0.10.1", + }, KnownAccountClass { class_hash: felt!("0x025ec026985a3bf9d0cc1fe17326b245dfdc3ff89b8fde106542a3ea56c5a918"), variant: AccountVariantType::ArgentLegacy,