From d055ba651bd7871fd581db7e6bbf47b017927938 Mon Sep 17 00:00:00 2001 From: zintarh Date: Sat, 23 Nov 2024 09:01:26 +0100 Subject: [PATCH 1/2] chore: update mainnet v3 --- src/connectors/tokenboundAccount/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectors/tokenboundAccount/constants.ts b/src/connectors/tokenboundAccount/constants.ts index 800e611..cd46adc 100644 --- a/src/connectors/tokenboundAccount/constants.ts +++ b/src/connectors/tokenboundAccount/constants.ts @@ -55,7 +55,7 @@ export const AccountClassHashes = { }, V3: { mainnet: - "0x3d311ba322e1f900d669586b191a2a82c50f6cb850563a8e1c01c7bac9be7b0", + "0xbe8863311f24317dff8af16deb1285ec5b035e57cf9beda545c341c339b925", sepolia: "0x29d2a1b11dd97289e18042502f11356133a2201dd19e716813fb01fbee9e9a4", }, From 2e96b62e60d4e4154374d68327e99c5201665c76 Mon Sep 17 00:00:00 2001 From: zintarh Date: Sat, 23 Nov 2024 09:09:55 +0100 Subject: [PATCH 2/2] chore: remove unused codes --- src/connectors/tokenboundAccount/constants.ts | 3 +-- src/connectors/tokenboundAccount/helpers/utils.ts | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/connectors/tokenboundAccount/constants.ts b/src/connectors/tokenboundAccount/constants.ts index cd46adc..92e2544 100644 --- a/src/connectors/tokenboundAccount/constants.ts +++ b/src/connectors/tokenboundAccount/constants.ts @@ -54,8 +54,7 @@ export const AccountClassHashes = { "0x45d67b8590561c9b54e14dd309c9f38c4e2c554dd59414021f9d079811621bd", }, V3: { - mainnet: - "0xbe8863311f24317dff8af16deb1285ec5b035e57cf9beda545c341c339b925", + mainnet: "0xbe8863311f24317dff8af16deb1285ec5b035e57cf9beda545c341c339b925", sepolia: "0x29d2a1b11dd97289e18042502f11356133a2201dd19e716813fb01fbee9e9a4", }, diff --git a/src/connectors/tokenboundAccount/helpers/utils.ts b/src/connectors/tokenboundAccount/helpers/utils.ts index 10b3bd5..191d0cb 100644 --- a/src/connectors/tokenboundAccount/helpers/utils.ts +++ b/src/connectors/tokenboundAccount/helpers/utils.ts @@ -99,17 +99,6 @@ export async function waitForWalletAccountAddress( return checkAddress() } -// export async function hasApprove(parentAccountId: string): Promise { -// const authorizedWallets = await sn.getAuthorizedWallets() -// const authorizedWallet = authorizedWallets.find( -// (w) => w.id === parentAccountId, -// ) -// if (authorizedWallet) { -// return true -// } -// return false -// } - export async function checkTbaVersion( provider: RpcProvider, tokenboundAddress: string,