From 645ba0801c9864c194775fa7eee56fd70e5efb13 Mon Sep 17 00:00:00 2001 From: jbcaron Date: Mon, 29 Apr 2024 16:58:55 +0200 Subject: [PATCH] fix optinal albi --- starknet-core/src/types/contract/legacy.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/starknet-core/src/types/contract/legacy.rs b/starknet-core/src/types/contract/legacy.rs index a6edda7f..453a3ebf 100644 --- a/starknet-core/src/types/contract/legacy.rs +++ b/starknet-core/src/types/contract/legacy.rs @@ -31,6 +31,7 @@ const API_VERSION: Felt = Felt::ZERO; #[cfg_attr(feature = "no_unknown_fields", serde(deny_unknown_fields))] pub struct LegacyContractClass { /// Contract ABI. + #[serde(default)] pub abi: Vec, /// Contract entrypoints. pub entry_points_by_type: RawLegacyEntryPoints,