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 }); -}