File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tokenscript-viewer/src/components/common/tokens-grid Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export abstract class AbstractTokenScript implements ITokenScript {
289
289
290
290
const balance = tokenContext . balance ? tokenContext . balance . toString ( ) : "0" ; // bigint can't be json serialized, so it must always be string
291
291
292
- const image = this . getMetadata ( ) . imageUrl ?? tokenDetails ?. image ?? this . getMetadata ( ) . iconUrl ;
292
+ const image = this . getMetadata ( ) . imageUrl ?? tokenDetails ?. image ?? tokenContext . image ?? this . getMetadata ( ) . iconUrl ;
293
293
294
294
data = {
295
295
name : tokenDetails ?. name ?? tokenContext . name ,
@@ -304,6 +304,7 @@ export abstract class AbstractTokenScript implements ITokenScript {
304
304
tokenId : tokenContext . selectedTokenId ,
305
305
ownerAddress : tokenContext . tokenType === "erc20" ? await this . getCurrentWalletAddress ( ) : ZeroAddress ,
306
306
image_preview_url : image ,
307
+ image
307
308
} ;
308
309
309
310
if ( tokenDetails ) {
Original file line number Diff line number Diff line change @@ -69,11 +69,10 @@ export class TokensGrid {
69
69
70
70
if ( walletConnection ) {
71
71
this . currentWalletAddress = walletConnection . address . toLowerCase ( ) ;
72
- this . tokenScript . getTokenMetadata ( true ) ;
73
72
} else {
74
73
this . currentWalletAddress = ZeroAddress ;
75
- this . tokenScript . setTokenMetadata ( [ ] ) ;
76
74
}
75
+ await this . tokenScript . getTokenMetadata ( true ) ;
77
76
} ) ;
78
77
79
78
if ( Web3WalletProvider . isWalletConnected ( ) )
You can’t perform that action at this time.
0 commit comments