File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
src/Packages/Marketplace/Runtime Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -151,18 +151,18 @@ public static string GenerateBridgeLink(
151
151
152
152
var queryParamsDictionary = new Dictionary < string , string > ( ) ;
153
153
154
- if ( ! string . IsNullOrEmpty ( queryParams . FromTokenAddress ) )
155
- queryParamsDictionary [ "fromToken" ] = queryParams . FromTokenAddress . ToLower ( ) ;
156
-
157
154
if ( ! string . IsNullOrEmpty ( queryParams . FromChainID ) )
158
155
queryParamsDictionary [ "fromChain" ] = queryParams . FromChainID ;
159
156
160
- if ( ! string . IsNullOrEmpty ( queryParams . ToTokenAddress ) )
161
- queryParamsDictionary [ "toToken " ] = queryParams . ToTokenAddress . ToLower ( ) ;
157
+ if ( ! string . IsNullOrEmpty ( queryParams . FromTokenAddress ) )
158
+ queryParamsDictionary [ "fromToken " ] = queryParams . FromTokenAddress . ToLower ( ) ;
162
159
163
160
if ( ! string . IsNullOrEmpty ( queryParams . ToChainID ) )
164
161
queryParamsDictionary [ "toChain" ] = queryParams . ToChainID ;
165
162
163
+ if ( ! string . IsNullOrEmpty ( queryParams . ToTokenAddress ) )
164
+ queryParamsDictionary [ "toToken" ] = queryParams . ToTokenAddress . ToLower ( ) ;
165
+
166
166
var queryString = string . Join ( "&" ,
167
167
queryParamsDictionary . Select ( kvp => $ "{ kvp . Key } ={ Uri . EscapeDataString ( kvp . Value ) } ") . ToArray ( ) ) ;
168
168
return $ "{ baseUrl } ?{ queryString } ";
Original file line number Diff line number Diff line change @@ -47,24 +47,24 @@ public struct SwapQueryParams
47
47
/// </summary>
48
48
public struct BridgeQueryParams
49
49
{
50
- /// <summary>
51
- /// The address of the token being moved from (default is null).
52
- /// </summary>
53
- public string ? FromTokenAddress { get ; set ; }
54
-
55
50
/// <summary>
56
51
/// The ID of the source blockchain (default is null).
57
52
/// </summary>
58
53
public string ? FromChainID { get ; set ; }
59
54
60
55
/// <summary>
61
- /// The address of the token being moved to (default is null).
56
+ /// The address of the token being moved from (default is null).
62
57
/// </summary>
63
- public string ? ToTokenAddress { get ; set ; }
58
+ public string ? FromTokenAddress { get ; set ; }
64
59
65
60
/// <summary>
66
61
/// The ID of the destination blockchain (default is null).
67
62
/// </summary>
68
63
public string ? ToChainID { get ; set ; }
64
+
65
+ /// <summary>
66
+ /// The address of the token being moved to (default is null).
67
+ /// </summary>
68
+ public string ? ToTokenAddress { get ; set ; }
69
69
}
70
- }
70
+ }
You can’t perform that action at this time.
0 commit comments