diff --git a/src/index.html b/src/index.html
index 9fc5971e..5dc7dc1f 100644
--- a/src/index.html
+++ b/src/index.html
@@ -348,6 +348,16 @@
+
+
+
+
{
approveTokenInput,
approveButton,
setApprovalForAllButton,
+ revokeButton,
transferTokenInput,
transferFromButton,
deployFailingButton,
@@ -339,6 +341,7 @@ const initialize = async () => {
approveTokenInput.disabled = false;
approveButton.disabled = false;
setApprovalForAllButton.disabled = false;
+ revokeButton.disabled = false;
transferTokenInput.disabled = false;
transferFromButton.disabled = false;
// ERC20 Token - Send Tokens
@@ -523,6 +526,7 @@ const initialize = async () => {
approveTokenInput.disabled = false;
approveButton.disabled = false;
setApprovalForAllButton.disabled = false;
+ revokeButton.disabled = false;
transferTokenInput.disabled = false;
transferFromButton.disabled = false;
};
@@ -555,6 +559,20 @@ const initialize = async () => {
collectiblesStatus.innerHTML = 'Set Approval For All completed';
};
+ revokeButton.onclick = async () => {
+ collectiblesStatus.innerHTML = 'Revoke initiated';
+ let result = await collectiblesContract.setApprovalForAll(
+ '0x9bc5baF874d2DA8D216aE9f137804184EE5AfEF4',
+ false,
+ {
+ from: accounts[0],
+ },
+ );
+ result = await result.wait();
+ console.log(result);
+ collectiblesStatus.innerHTML = 'Revoke completed';
+ };
+
transferFromButton.onclick = async () => {
collectiblesStatus.innerHTML = 'Transfer From initiated';
let result = await collectiblesContract.transferFrom(