Skip to content

Commit

Permalink
chore: source code polish
Browse files Browse the repository at this point in the history
  • Loading branch information
YermekG committed Jan 19, 2025
1 parent f802677 commit 4191e08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ FString UOnRampWidget::ComputePath(const FString& WalletAddress, const FString&
QueryParams.Add(FString(TEXT("walletAddress=")) + FPlatformHttp::UrlEncode(WalletAddress));
QueryParams.Add(FString(TEXT("themeColor=")) + FPlatformHttp::UrlEncode(OnRampWidgetConfig->GetThemeColor().ToString()));
QueryParams.Add(FString(TEXT("isAutoFillUserData=")) + FPlatformHttp::UrlEncode(OnRampWidgetConfig->IsAutoFillUserData() ? TEXT("true") : TEXT("false")));
QueryParams.Add(FString(TEXT("disableWalletAddressForm=")) + FPlatformHttp::UrlEncode(OnRampWidgetConfig->DisableWalletAddressForm() ? TEXT("true") : TEXT("false")));
QueryParams.Add(FString(TEXT("disableWalletAddressForm=")) + FPlatformHttp::UrlEncode(OnRampWidgetConfig->IsDisableWalletAddressForm() ? TEXT("true") : TEXT("false")));

if (!OnRampWidgetConfig->GetNetwork().IsEmpty())
{
Expand Down Expand Up @@ -158,6 +158,7 @@ void UOnRampWidget::HandleOnUrlChanged(const FText& Text)
{
bIsReady = true;
OnWhenReady.Broadcast();
OnWhenReady.Clear();
}
}

Expand Down
20 changes: 10 additions & 10 deletions Source/ImmutableMarketplace/Public/OnRampWidgetConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return Network as FString
*/
const FString& GetNetwork()
const FString& GetNetwork() const
{
return Network;
}
Expand All @@ -65,7 +65,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return DefaultFiatCurrency as FString
*/
const FString& GetDefaultFiatCurrency()
const FString& GetDefaultFiatCurrency() const
{
return DefaultFiatCurrency;
}
Expand All @@ -74,7 +74,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return DefaultFiatAmount as FString
*/
const FString& GetDefaultFiatAmount()
const FString& GetDefaultFiatAmount() const
{
return DefaultFiatAmount;
}
Expand All @@ -83,7 +83,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return DefaultCryptoCurrency as FString
*/
const FString& GetDefaultCryptoCurrency()
const FString& GetDefaultCryptoCurrency() const
{
return DefaultCryptoCurrency;
}
Expand All @@ -92,7 +92,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return DefaultPaymentMethod as FString
*/
const FString& GetDefaultPaymentMethod()
const FString& GetDefaultPaymentMethod() const
{
return DefaultPaymentMethod;
}
Expand All @@ -101,7 +101,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return DisablePaymentMethods as array of FString
*/
const TArray<FString>& GetDisablePaymentMethods()
const TArray<FString>& GetDisablePaymentMethods() const
{
return DisablePaymentMethods;
}
Expand All @@ -110,7 +110,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return bIsAutoFillUserData as bool
*/
bool IsAutoFillUserData()
bool IsAutoFillUserData() const
{
return bIsAutoFillUserData;
}
Expand All @@ -119,7 +119,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return bDisableWalletAddressForm as bool
*/
bool DisableWalletAddressForm()
bool IsDisableWalletAddressForm() const
{
return bDisableWalletAddressForm;
}
Expand All @@ -128,7 +128,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return CryptoCurrencyList as array of FString
*/
const TArray<FString>& GetCryptoCurrencyList()
const TArray<FString>& GetCryptoCurrencyList() const
{
return CryptoCurrencyList;
}
Expand All @@ -137,7 +137,7 @@ class IMMUTABLEMARKETPLACE_API UOnRampWidgetConfig : public UObject
* @details More details could be found under the class parameter
* @return ThemeColor as FLinearColor
*/
const FLinearColor& GetThemeColor()
const FLinearColor& GetThemeColor() const
{
return ThemeColor;
}
Expand Down

0 comments on commit 4191e08

Please sign in to comment.