fix address
This commit is contained in:
parent
881ff70a1c
commit
578c82f6dd
|
|
@ -13,9 +13,6 @@ import { ConfirmModal } from "~/pages/root/steps/royalty-step/components/confirm
|
||||||
import { useRootStore } from "~/shared/stores/root";
|
import { useRootStore } from "~/shared/stores/root";
|
||||||
import { BackButton } from "~/shared/ui/back-button";
|
import { BackButton } from "~/shared/ui/back-button";
|
||||||
import { useTonConnectUI } from "@tonconnect/ui-react";
|
import { useTonConnectUI } from "@tonconnect/ui-react";
|
||||||
import { Buffer } from 'buffer';
|
|
||||||
|
|
||||||
window.Buffer = Buffer;
|
|
||||||
|
|
||||||
type RoyaltyStepProps = {
|
type RoyaltyStepProps = {
|
||||||
prevStep(): void;
|
prevStep(): void;
|
||||||
|
|
@ -82,10 +79,7 @@ export const RoyaltyStep = ({ nextStep, prevStep }: RoyaltyStepProps) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('tonconnectUI', tonConnectUI)
|
console.log('tonconnectUI', tonConnectUI)
|
||||||
if (tonConnectUI.account) {
|
if (tonConnectUI.account) {
|
||||||
setRoyalty([{ address: Address.parse(tonConnectUI.account.address).toString({
|
setRoyalty([{ address: tonConnectUI.account.address
|
||||||
bounceable: true,
|
|
||||||
urlSafe: true,
|
|
||||||
testOnly: false,
|
|
||||||
}), value: 100 }]);
|
}), value: 100 }]);
|
||||||
}
|
}
|
||||||
}, [tonConnectUI.account, setRoyalty]);
|
}, [tonConnectUI.account, setRoyalty]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue