Skip to content

Commit ef9f995

Browse files
committed
Remove VITE_FEATURE_FLAG_PAYMASTER flag
1 parent 0a3f35e commit ef9f995

6 files changed

Lines changed: 5 additions & 12 deletions

File tree

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ VITE_WALLET_CONNECT_PROJECT_ID=e3727c2e231abb0791d9cc90b55fb1e1
22
# VITE_ROFL_APP_BACKEND=http://localhost:8899
33
VITE_ROFL_APP_BACKEND=https://backend.rofl.app
44
VITE_FATHOM_SIDE_ID=ADZXERYI
5-
VITE_FEATURE_FLAG_PAYMASTER=1

.env.production

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VITE_ROFL_APP_BACKEND=https://backend.rofl.app
2-
VITE_FEATURE_FLAG_PAYMASTER=1

src/components/rofl-paymaster/TopUp/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ import { TransactionSummary } from '../TransactionSummary'
3636
import { usePaymaster } from '../../../hooks/usePaymaster'
3737
import { ChainLogo } from '../TokenLogo/ChainLogo'
3838

39-
const { VITE_FEATURE_FLAG_PAYMASTER } = import.meta.env
40-
4139
const bridgeFormSchema = z.object({
4240
sourceChain: z
4341
.object({
@@ -612,7 +610,7 @@ const TopUpCmp: FC<TopUpProps> = ({ children, minAmount, onValidChange, onTopUpS
612610
export const TopUp: FC<TopUpProps> = props => {
613611
const network = useNetwork()
614612

615-
if (network === 'testnet' && !VITE_FEATURE_FLAG_PAYMASTER) {
613+
if (network === 'testnet') {
616614
return <FaucetInfo />
617615
}
618616

src/constants/wagmi-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getDefaultConfig } from '@rainbow-me/rainbowkit'
22
import { sapphire, sapphireTestnet } from 'viem/chains'
33
import { ROFL_PAYMASTER_ENABLED_CHAINS } from './rofl-paymaster-config.ts'
44

5-
const { VITE_WALLET_CONNECT_PROJECT_ID, VITE_FEATURE_FLAG_PAYMASTER } = import.meta.env
5+
const { VITE_WALLET_CONNECT_PROJECT_ID } = import.meta.env
66

77
declare module 'wagmi' {
88
interface Register {
@@ -13,7 +13,7 @@ declare module 'wagmi' {
1313
export const wagmiConfig: ReturnType<typeof getDefaultConfig> = getDefaultConfig({
1414
appName: 'ROFL App',
1515
projectId: VITE_WALLET_CONNECT_PROJECT_ID,
16-
chains: [sapphire, sapphireTestnet, ...(VITE_FEATURE_FLAG_PAYMASTER ? ROFL_PAYMASTER_ENABLED_CHAINS : [])],
16+
chains: [sapphire, sapphireTestnet, ...ROFL_PAYMASTER_ENABLED_CHAINS],
1717
ssr: false,
1818
batch: {
1919
multicall: false,

src/pages/CreateApp/PaymentStep.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import { sapphire, sapphireTestnet } from 'viem/chains'
1515
import { useTicker } from '../../hooks/useTicker'
1616
import { useBlockNavigatingAway } from './useBlockNavigatingAway.ts'
1717

18-
const { VITE_FEATURE_FLAG_PAYMASTER } = import.meta.env
19-
2018
type PaymentStepProps = {
2119
handleNext: () => void
2220
handleBack: () => void
@@ -142,14 +140,14 @@ export const PaymentStep: FC<PaymentStepProps> = ({
142140
</TopUp>
143141
)}
144142

145-
{isTestnetBlocked && !VITE_FEATURE_FLAG_PAYMASTER && (
143+
{isTestnetBlocked && (
146144
<div className="text-sm text-destructive mt-4 text-pretty">
147145
Functionality is currently blocked on the Oasis Sapphire Testnet. To build and deploy your
148146
application, please switch to Mainnet.
149147
</div>
150148
)}
151149

152-
{(hasEnoughBalance || (isTestnet && !VITE_FEATURE_FLAG_PAYMASTER)) && (
150+
{hasEnoughBalance && (
153151
<form onSubmit={handleNext} className="w-full">
154152
<CreateFormNavigation
155153
handleBack={() => {

src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ interface ImportMetaEnv {
99
VITE_WALLET_CONNECT_PROJECT_ID: string
1010
VITE_ROFL_APP_BACKEND: string
1111
VITE_FATHOM_SIDE_ID: string
12-
VITE_FEATURE_FLAG_PAYMASTER: string
1312
}
1413

1514
interface ImportMeta {

0 commit comments

Comments
 (0)