@@ -47,11 +47,10 @@ const OfferCreation = ({ onStartGuidedWorkflow }) => {
4747 const [ txHash , setTxHash ] = useState ( '' ) ;
4848 const [ txStatus , setTxStatus ] = useState ( null ) ;
4949 const [ showConfirmation , setShowConfirmation ] = useState ( false ) ;
50- const [ devnetBypass , setDevnetBypass ] = useState ( false ) ;
5150
5251 // Connection status tracking
5352 const isWalletConnected = wallet . connected && wallet . publicKey ;
54- const isSmartContractReady = ( isWalletConnected && program && connection && connectionStatus === CONNECTION_STATUS . CONNECTED ) || devnetBypass ;
53+ const isSmartContractReady = isWalletConnected && program && connection && connectionStatus === CONNECTION_STATUS . CONNECTED ;
5554 const isConnectionFailed = connectionStatus === CONNECTION_STATUS . FAILED ;
5655 const isConnectionRetrying = connectionStatus === CONNECTION_STATUS . RETRYING ;
5756 const isConnectionConnecting = connectionStatus === CONNECTION_STATUS . CONNECTING ;
@@ -66,10 +65,9 @@ const OfferCreation = ({ onStartGuidedWorkflow }) => {
6665 hasProgram : ! ! program ,
6766 hasConnection : ! ! connection ,
6867 connectionStatus,
69- isSmartContractReady,
70- devnetBypass
68+ isSmartContractReady
7169 } ) ;
72- } , [ isWalletConnected , wallet , program , connection , connectionStatus , isSmartContractReady , devnetBypass ] ) ;
70+ } , [ isWalletConnected , wallet , program , connection , connectionStatus , isSmartContractReady ] ) ;
7371
7472 // Track connection status for better UX
7573 useEffect ( ( ) => {
@@ -121,8 +119,8 @@ const OfferCreation = ({ onStartGuidedWorkflow }) => {
121119 return ;
122120 }
123121
124- if ( ! isSmartContractReady && ! devnetBypass ) {
125- setError ( 'Smart contract connection is not ready. Please check your devnet connection and try again.' ) ;
122+ if ( ! isSmartContractReady ) {
123+ setError ( 'Smart contract connection is not ready. Please check your Solana devnet connection and try again.' ) ;
126124 return ;
127125 }
128126
@@ -495,7 +493,7 @@ const OfferCreation = ({ onStartGuidedWorkflow }) => {
495493 </ ul >
496494
497495 < div className = "devnet-notice" >
498- < p > < strong > Note :</ strong > If devnet endpoints are temporarily unavailable, you can continue in simulation mode for interface testing. Smart contract features will be simulated .</ p >
496+ < p > < strong > Important :</ strong > Solana devnet is required for trading operations. Please ensure you have a stable internet connection and try refreshing the page if the issue persists .</ p >
499497 </ div >
500498 </ >
501499 ) }
@@ -517,22 +515,6 @@ const OfferCreation = ({ onStartGuidedWorkflow }) => {
517515 `Retry Connection${ connectionAttempts > 0 ? ` (${ connectionAttempts } )` : '' } `
518516 }
519517 </ ButtonLoader >
520-
521- { isConnectionFailed && (
522- < button
523- type = "button"
524- onClick = { ( ) => {
525- // Enable devnet bypass for UI testing when endpoints are unavailable
526- setDevnetBypass ( true ) ;
527- setError ( '' ) ;
528- console . log ( '[OfferCreation] Devnet bypass enabled - simulating connection for UI testing' ) ;
529- } }
530- className = "devnet-bypass-button"
531- title = "Continue with simulation mode (devnet features simulated)"
532- >
533- Continue Without Devnet (Simulation Mode)
534- </ button >
535- ) }
536518 </ div >
537519 ) }
538520 </ div >
0 commit comments