Skip to content

Commit d0b837f

Browse files
committed
feat: apply ts-token-container class to token-info-popover
1 parent 3be1868 commit d0b837f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

javascript/tokenscript-viewer/src/assets/test-iframe-provider.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//params = new URLSearchParams("chain=11155111&contract=0xbb14e71e54e03808a6271722192d03ebdc2eab7f&tokenId=3446746621659278273178542360570905268274680596831489800398881977304212307968&tokenscriptUrl=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2FSmartTokenLabs%2Fresources%2Ftokenscript%2Frb-sepolia-0xbb14e71e54e03808a6271722192d03ebdc2eab7f-v5.tsml")
3939
//params = new URLSearchParams("chain=11155111&contract=0xa532D3c016aA0B44b7228aCcd701A5F03112CD22&tokenId=1"); // smart cat sepolia
4040
//params = new URLSearchParams("chain=8217&contract=0xE39dC2CBe826EAC3d736C54Ef0c4045B2054a43e&tokenId=0&emulator=http%3A%2F%2Flocalhost%3A8090%2F");
41-
params = new URLSearchParams("chain=1001&contract=0x73148b2c977586305f5aaa63b473a7af96619296&tokenId=0&emulator=http%3A%2F%2Flocalhost%3A8090%2F");
41+
params = new URLSearchParams("chain=1001&contract=0x73148b2c977586305f5aaa63b473a7af96619296&tokenId=15&emulator=http%3A%2F%2Flocalhost%3A8090%2F");
4242
//params = new URLSearchParams("chain=11155111&contract=0xa532D3c016aA0B44b7228aCcd701A5F03112CD22&tokenId=1&tokenscriptUrl=http%3A%2F%2Flocalhost%3A8090%2Ftokenscript.tsml"); // smart cat sepolia emulator
4343
//params = new URLSearchParams("chain=1&contract=0x3c7e352481f4b2fdec1e642a3f0018661c77513d&tokenId=398233297468566556333642"); // devcon
4444
//params = new URLSearchParams("chain=11155111&contract=0xdE915aFf3649568E15A94fe9b623Db3e7A0944F9&tokenId=1"); // ERC1155
@@ -109,7 +109,8 @@
109109
console.error(e);
110110
sendResponse(message.data, null, {
111111
code: e.code,
112-
message: e.message
112+
message: e.message,
113+
data: e.data
113114
});
114115
}
115116
});

javascript/tokenscript-viewer/src/components/common/tokens-grid/token-info-popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class TokenInfoPopover {
5656

5757
render(){
5858
return (
59-
<popover-dialog ref={(el) => this.dialog = el as HTMLPopoverDialogElement}>
59+
<popover-dialog ref={(el) => this.dialog = el as HTMLPopoverDialogElement} dialogClasses={["ts-token-container"]}>
6060
{ this.token ?
6161
<div>
6262
<h4>{this.token.name}</h4>

0 commit comments

Comments
 (0)