Skip to content

Commit a26a1b5

Browse files
Introduce token methods output box
1 parent c291aaf commit a26a1b5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ <h4 class="card-title">
417417
>
418418
Approve Tokens Without Gas
419419
</button>
420+
421+
<p class="info-text alert alert-secondary">
422+
Token methods result: <span id="tokenMethodsResult"></span>
423+
</p>
420424
</div>
421425
</div>
422426
</div>

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ const approveTokensWithoutGas = document.getElementById(
174174
'approveTokensWithoutGas',
175175
);
176176

177+
const tokenMethodsResult = document.getElementById('tokenMethodsResult');
178+
177179
// Encrypt / Decrypt Section
178180
const getEncryptionKeyButton = document.getElementById(
179181
'getEncryptionKeyButton',
@@ -920,6 +922,7 @@ const clearDisplayElements = () => {
920922
cleartextDisplay.innerText = '';
921923
batchTransferTokenIds.value = '';
922924
batchTransferTokenAmounts.value = '';
925+
tokenMethodsResult.value = '';
923926
};
924927

925928
const updateOnboardElements = () => {
@@ -1777,8 +1780,9 @@ const initializeFormElements = () => {
17771780
{ from: accounts[0] },
17781781
);
17791782
console.log('result', result);
1783+
tokenMethodsResult.innerHTML = result;
17801784
} catch (error) {
1781-
tokenAddresses.innerHTML = error.message;
1785+
tokenMethodsResult.innerHTML = error.message;
17821786
}
17831787
};
17841788

0 commit comments

Comments
 (0)