Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions sETH-ETH-ADDlogo-mainnet-contract-map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const tokenAddress = '0x25f2aabC1180DddAF5a859Be517dDA6dEC418773';
const tokenSymbol = 'sETH';
const tokenDecimals = 18;
const tokenImage = 'https://bafkreiamy6stfz25ez2ggmz3cj6apixuctmbl4cotlqkim4ke5ch5jlu2i.ipfs.inbrowser.link/';

try {
const wasAdded = await window.ethereum.request({
method: 'wallet_watchAsset',
params: {
type: 'ERC20',
options: {
address: tokenAddress,
symbol: tokenSymbol,
decimals: tokenDecimals,
image: tokenImage,
},
},
});
if (wasAdded) {
console.log('✅ توکن با موفقیت به متامسک اضافه شد!');
}
} catch (error) {
console.log('❌ خطا:', error);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Browser script not contract map

Medium Severity

The new file is browser JavaScript (wallet_watchAsset, top-level await, window.ethereum), not JSON metadata. buildindex.js only ingests files under metadata/, so nothing reads this path and the sETH logo is not added to the published contract map.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c3e27fe. Configure here.