From 578c82f6dd0e64d70ae2c6a8ec02335aebacc6a4 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 22 Jan 2025 20:29:01 +0300 Subject: [PATCH] fix address --- src/pages/root/steps/royalty-step/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/root/steps/royalty-step/index.tsx b/src/pages/root/steps/royalty-step/index.tsx index a64f5de..729426c 100644 --- a/src/pages/root/steps/royalty-step/index.tsx +++ b/src/pages/root/steps/royalty-step/index.tsx @@ -13,9 +13,6 @@ import { ConfirmModal } from "~/pages/root/steps/royalty-step/components/confirm import { useRootStore } from "~/shared/stores/root"; import { BackButton } from "~/shared/ui/back-button"; import { useTonConnectUI } from "@tonconnect/ui-react"; -import { Buffer } from 'buffer'; - -window.Buffer = Buffer; type RoyaltyStepProps = { prevStep(): void; @@ -82,10 +79,7 @@ export const RoyaltyStep = ({ nextStep, prevStep }: RoyaltyStepProps) => { useEffect(() => { console.log('tonconnectUI', tonConnectUI) if (tonConnectUI.account) { - setRoyalty([{ address: Address.parse(tonConnectUI.account.address).toString({ - bounceable: true, - urlSafe: true, - testOnly: false, + setRoyalty([{ address: tonConnectUI.account.address }), value: 100 }]); } }, [tonConnectUI.account, setRoyalty]);