From 7438a2718186521f5b778a1708da19bde07f65d0 Mon Sep 17 00:00:00 2001 From: Isha Venikar <145848618+IshaVenikar@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:15:24 +0530 Subject: [PATCH] Replace ethereumAddress with nitroAddress (#1) --- src/pages/OnboardingSuccess.tsx | 10 +++++----- src/pages/SignWithCosmos.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/OnboardingSuccess.tsx b/src/pages/OnboardingSuccess.tsx index 83280e6..72b24e5 100644 --- a/src/pages/OnboardingSuccess.tsx +++ b/src/pages/OnboardingSuccess.tsx @@ -6,8 +6,8 @@ import { Box, Typography } from "@mui/material"; import { Registry } from "@cerc-io/registry-sdk"; interface Participant { - cosmos_address: string; - ethereum_address: string; + cosmosAddress: string; + nitroAddress: string; } const registry = new Registry( @@ -24,7 +24,7 @@ const OnboardingSuccess = () => { try { const allParticipants: Participant[] = await registry.getParticipants(); const participant = allParticipants.find( - (participant) => participant.cosmos_address === cosmosAddress + (participant) => participant.cosmosAddress === cosmosAddress ); if (!participant) { @@ -64,8 +64,8 @@ const OnboardingSuccess = () => {
{participant && (- Cosmos Address: {participant.cosmos_address})} diff --git a/src/pages/SignWithCosmos.tsx b/src/pages/SignWithCosmos.tsx index 20ac42c..05d96a6 100644 --- a/src/pages/SignWithCosmos.tsx +++ b/src/pages/SignWithCosmos.tsx @@ -39,7 +39,7 @@ const SignWithCosmos = () => { transactionMessage: MsgOnboardParticipantEncodeObject ) => { if (!ethAddress) { - enqueueSnackbar("Set ethereum address"); + enqueueSnackbar("Set nitro address"); return; }
- Ethereum Address: {participant.ethereum_address}
+ Cosmos Address: {participant.cosmosAddress}
+ Nitro Address: {participant.nitroAddress}