remove "watch rep" button
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s Details

This commit is contained in:
Ladd Hoffman 2024-04-26 19:52:50 -05:00
parent 58dc26ee30
commit 260de4e724
2 changed files with 0 additions and 27 deletions

View File

@ -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() {
</div>
<div>
<Button onClick={() => disconnect()}>Disconnect</Button>
<Button onClick={() => watchReputationToken()}>Watch REP in MetaMask</Button>
</div>
</Stack>
</Col>

View File

@ -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() {
</div>
<div>
<Button onClick={() => disconnect()}>Disconnect</Button>
<Button onClick={() => watchReputationToken()}>Watch REP in MetaMask</Button>
<Button onClick={() => registerMatrixIdentity()}>
Register Matrix Identity
</Button>