mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-29 06:18:34 +01:00
adding token id in meme view
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
<span id="wowxTips">?</span> WOWX,
|
||||
<span id="avaxTips">?</span> AVAX
|
||||
</p>
|
||||
{% if meme.minted %}
|
||||
<p><strong>Token ID:</strong> <span id="tokenId">? </span> <a href="{{ config.CONTRACT_ADDRESS | show_snowtrace }}">(contract)</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% if not meme.approved %}
|
||||
<br/>
|
||||
@@ -160,6 +163,7 @@
|
||||
try {
|
||||
const tokenId = await getTokenID('{{ meme.meta_ipfs_hash }}');
|
||||
const memeDeets = await contract.methods.tokenMeme(tokenId).call();
|
||||
document.getElementById('tokenId').innerHTML = tokenId;
|
||||
document.getElementById('wowxTips').innerHTML = await w3.utils.fromWei(memeDeets.creatorTipsWOWX);
|
||||
document.getElementById('avaxTips').innerHTML = await w3.utils.fromWei(memeDeets.creatorTipsAVAX);
|
||||
} catch(e) {
|
||||
|
||||
Reference in New Issue
Block a user