Skip to content

Commit e5ab3ed

Browse files
committed
fix refractor to public
1 parent aba8b2f commit e5ab3ed

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/DeepLinkHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface DeepLinkHandlerProps {
1010

1111
export const DeepLinkHandler = ({ onDeepLinkLoaded }: DeepLinkHandlerProps) => {
1212
const location = useLocation();
13-
13+
1414
const { toast } = useToast();
1515

1616
useEffect(() => {

src/components/TransactionBuilder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export const TransactionBuilder = ({ onBack, accountPublicKey, accountData, init
713713
const xdr = await pullFromRefractor(id);
714714
setXdrData(prev => ({ ...prev, input: xdr, output: '' }));
715715
setSignedBy([]);
716-
716+
717717
toast({
718718
title: "Transaction pulled from Refractor",
719719
description: "XDR loaded successfully",

src/lib/stellar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ export const submitTransaction = async (signedXdr: string, network: 'mainnet' |
312312
// Refractor integration functions
313313
export const submitToRefractor = async (xdr: string, network: 'mainnet' | 'testnet'): Promise<string> => {
314314
try {
315-
const apiNetwork = network === 'testnet' ? 'testnet' : 'public';
316-
317-
315+
// Always use mainnet for Refractor regardless of the network parameter
316+
const apiNetwork = 'public';
317+
318318
const response = await fetch(`${appConfig.REFRACTOR_API_BASE}`, {
319319
method: 'POST',
320320
headers: {

0 commit comments

Comments
 (0)