From 260de4e724b60effa6ab3f48d5e7117026bd12f9 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Fri, 26 Apr 2024 19:52:50 -0500 Subject: [PATCH] remove "watch rep" button --- frontend/src/WebApp.jsx | 13 ------------- frontend/src/Widget.jsx | 14 -------------- 2 files changed, 27 deletions(-) diff --git a/frontend/src/WebApp.jsx b/frontend/src/WebApp.jsx index ed86a1f..b57fb4e 100644 --- a/frontend/src/WebApp.jsx +++ b/frontend/src/WebApp.jsx @@ -266,18 +266,6 @@ function WebApp() { } }, [sdk]); - const watchReputationToken = useCallback(async () => { - await provider.request({ - method: 'wallet_watchAsset', - params: { - type: 'ERC20', - options: { - address: getContractAddressByChainId(chainId, 'DAO'), - }, - }, - }); - }, [provider, chainId]); - const initiateValidationPool = useCallback(async (postId, poolDuration) => { const web3 = new Web3(provider); await DAO.methods.initiateValidationPool( @@ -378,7 +366,6 @@ function WebApp() {
-
diff --git a/frontend/src/Widget.jsx b/frontend/src/Widget.jsx index dafd6ab..1ed9d23 100644 --- a/frontend/src/Widget.jsx +++ b/frontend/src/Widget.jsx @@ -245,7 +245,6 @@ function Widget() { /* -------------------------------------------------------------------------------- */ useEffect(() => { - console.log('window.location', window.location); const { searchParams } = new URL(window.location.href); const widgetId = searchParams.get('widgetId'); @@ -288,18 +287,6 @@ function Widget() { } }, [sdk]); - const watchReputationToken = useCallback(async () => { - await provider.request({ - method: 'wallet_watchAsset', - params: { - type: 'ERC20', - options: { - address: getContractAddressByChainId(chainId, 'DAO'), - }, - }, - }); - }, [provider, chainId]); - const initiateValidationPool = useCallback(async (postId, poolDuration) => { const web3 = new Web3(provider); await DAO.methods.initiateValidationPool( @@ -415,7 +402,6 @@ function Widget() {
-