Update wallet connect meta data while signing in
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m34s

This commit is contained in:
Shreerang Kale 2024-10-29 19:19:33 +05:30
parent 97354f35a1
commit eb9c14dce3
4 changed files with 107 additions and 105 deletions

View File

@ -70,7 +70,7 @@ const Configure = () => {
maxPrice: DEFAULT_MAX_PRICE, maxPrice: DEFAULT_MAX_PRICE,
lrn: '', lrn: '',
numProviders: 1, numProviders: 1,
variables: [] variables: [],
}, },
}); });
@ -271,7 +271,7 @@ const Configure = () => {
); );
} }
} catch (error) { } catch (error) {
console.error(error) console.error(error);
toast({ toast({
id: 'error-deploying-app', id: 'error-deploying-app',
title: 'Error deploying app', title: 'Error deploying app',
@ -292,10 +292,13 @@ const Configure = () => {
setSelectedAccount(account); setSelectedAccount(account);
}, []); }, []);
const onDeployerChange = useCallback((selectedLrn: string) => { const onDeployerChange = useCallback(
(selectedLrn: string) => {
const deployer = deployers.find((d) => d.deployerLrn === selectedLrn); const deployer = deployers.find((d) => d.deployerLrn === selectedLrn);
setSelectedDeployer(deployer); setSelectedDeployer(deployer);
}, [deployers]); },
[deployers],
);
const cosmosSendTokensHandler = useCallback( const cosmosSendTokensHandler = useCallback(
async (selectedAccount: string, amount: string) => { async (selectedAccount: string, amount: string) => {
@ -507,8 +510,7 @@ const Configure = () => {
<EnvironmentVariablesForm /> <EnvironmentVariablesForm />
</div> </div>
{selectedOption === 'LRN' && {selectedOption === 'LRN' && !selectedDeployer?.minimumPayment ? (
!selectedDeployer?.minimumPayment ? (
<div> <div>
<Button <Button
{...buttonSize} {...buttonSize}

View File

@ -31,8 +31,8 @@ const axiosInstance = axios.create({
withCredentials: true, withCredentials: true,
}); });
const metadata = { const metadata = {
name: 'Web3Modal', name: 'Deploy App Auth',
description: 'Snowball Web3Modal', description: '',
url: window.location.origin, url: window.location.origin,
icons: ['https://avatars.githubusercontent.com/u/37784886'], icons: ['https://avatars.githubusercontent.com/u/37784886'],
}; };

View File

@ -41,7 +41,7 @@ const deployment: Deployment = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu', deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://example/deployers/webapp-deployer-api.example.com', deployerLrn: 'lrn://example/deployers/webapp-deployer-api.example.com',
minimumPayment: '1000alnt', minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com' baseDomain: 'pwa.example.com',
}, },
status: DeploymentStatus.Ready, status: DeploymentStatus.Ready,
createdBy: { createdBy: {

View File

@ -107,7 +107,7 @@ export const deployment0: Deployment = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu', deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://deployer.apps.snowballtools.com ', deployerLrn: 'lrn://deployer.apps.snowballtools.com ',
minimumPayment: '1000alnt', minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com' baseDomain: 'pwa.example.com',
}, },
applicationDeploymentRequestId: applicationDeploymentRequestId:
'bafyreiaycvq6imoppnpwdve4smj6t6ql5svt5zl3x6rimu4qwyzgjorize', 'bafyreiaycvq6imoppnpwdve4smj6t6ql5svt5zl3x6rimu4qwyzgjorize',
@ -135,7 +135,7 @@ export const project: Project = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu', deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://deployer.apps.snowballtools.com ', deployerLrn: 'lrn://deployer.apps.snowballtools.com ',
minimumPayment: '1000alnt', minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com' baseDomain: 'pwa.example.com',
}, },
], ],
paymentAddress: '0x657868687686rb4787987br8497298r79284797487', paymentAddress: '0x657868687686rb4787987br8497298r79284797487',