File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Sequence/SequenceBoilerplates/Scripts/InGameShop Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,17 @@ private async Task UpdateSaleDetailsAsync()
8787 private async Task UpdatePaymentTokenAsync ( )
8888 {
8989 PaymentToken = await _saleContract . GetPaymentTokenAsync ( _client ) ;
90-
91- var contract = new ERC20 ( PaymentToken ) ;
92- PaymentTokenSymbol = await contract . Symbol ( _client ) ;
93- PaymentTokenDecimals = await contract . Decimals ( _client ) ;
90+ if ( PaymentToken . IsZeroAddress ( ) )
91+ {
92+ PaymentTokenSymbol = ChainDictionaries . GasCurrencyOf [ _chain ] ;
93+ PaymentTokenDecimals = 18 ;
94+ }
95+ else
96+ {
97+ var contract = new ERC20 ( PaymentToken ) ;
98+ PaymentTokenSymbol = await contract . Symbol ( _client ) ;
99+ PaymentTokenDecimals = await contract . Decimals ( _client ) ;
100+ }
94101
95102 await UserPaymentTokenBalanceAsync ( ) ;
96103 }
Original file line number Diff line number Diff line change 11{
22 "name" : " xyz.0xsequence.waas-unity" ,
3- "version" : " 4.6.6 " ,
3+ "version" : " 4.6.7 " ,
44 "displayName" : " Sequence Embedded Wallet SDK" ,
55 "description" : " A Unity SDK for Sequence APIs" ,
66 "unity" : " 2021.3" ,
You can’t perform that action at this time.
0 commit comments