Skip to content

Commit

Permalink
mainnet check
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Dec 3, 2024
1 parent c85798c commit 2f9b846
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ internal class TransferInputProcessor(
private fun updateWithdrawalOptions(
transfer: InternalTransferInputState,
) {
val chains: IList<SelectionOption> = if (environment?.featureFlags?.cctpWithdrawalOnly == true) {
val chains: IList<SelectionOption> = if (environment?.isMainNet == true && environment?.featureFlags?.cctpWithdrawalOnly == true) {
transfer.cctpChains?.toIList() ?: iListOf()
} else {
transfer.chains?.toIList() ?: iListOf()
}
val assets: IList<SelectionOption> = if (environment?.featureFlags?.cctpWithdrawalOnly == true) {
val assets: IList<SelectionOption> = if (environment?.isMainNet == true && environment?.featureFlags?.cctpWithdrawalOnly == true) {
transfer.cctpTokens?.toIList() ?: iListOf()
} else {
transfer.tokens?.toIList() ?: iListOf()
Expand Down

0 comments on commit 2f9b846

Please sign in to comment.