From 126d51eb5d9ff179875a62b464844d88f32f22c8 Mon Sep 17 00:00:00 2001 From: Leonard Paturel Date: Thu, 6 Jun 2024 09:34:59 +0100 Subject: [PATCH] remove more uneeded code --- lib/index.ts | 1 - lib/upgrade.ts | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100644 lib/upgrade.ts diff --git a/lib/index.ts b/lib/index.ts index 79e104b..5ba5b06 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -15,6 +15,5 @@ export * from "./receipts"; export * from "./signers/legacy"; export * from "./signers/signers"; export * from "./tokens"; -export * from "./upgrade"; export type Constructor = new (...args: any[]) => T; diff --git a/lib/upgrade.ts b/lib/upgrade.ts deleted file mode 100644 index d60be57..0000000 --- a/lib/upgrade.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Call, CallData } from "starknet"; -import { getOutsideCall } from "./outsideExecution"; - -export function getUpgradeData(calls: Call[]) { - const externalCalls = calls.map(getOutsideCall); - return CallData.compile({ externalCalls }); -} - -export function getUpgradeDataLegacy(calls: Call[]) { - const upgradeData = getUpgradeData(calls); - return CallData.compile({ upgradeData }); -}