Replace ethereumAddress with nitroAddress (#1)
This commit is contained in:
parent
0b6ec3bd98
commit
7438a27181
@ -6,8 +6,8 @@ import { Box, Typography } from "@mui/material";
|
|||||||
import { Registry } from "@cerc-io/registry-sdk";
|
import { Registry } from "@cerc-io/registry-sdk";
|
||||||
|
|
||||||
interface Participant {
|
interface Participant {
|
||||||
cosmos_address: string;
|
cosmosAddress: string;
|
||||||
ethereum_address: string;
|
nitroAddress: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const registry = new Registry(
|
const registry = new Registry(
|
||||||
@ -24,7 +24,7 @@ const OnboardingSuccess = () => {
|
|||||||
try {
|
try {
|
||||||
const allParticipants: Participant[] = await registry.getParticipants();
|
const allParticipants: Participant[] = await registry.getParticipants();
|
||||||
const participant = allParticipants.find(
|
const participant = allParticipants.find(
|
||||||
(participant) => participant.cosmos_address === cosmosAddress
|
(participant) => participant.cosmosAddress === cosmosAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!participant) {
|
if (!participant) {
|
||||||
@ -64,8 +64,8 @@ const OnboardingSuccess = () => {
|
|||||||
<pre style={{ whiteSpace: "pre-wrap", margin: 0 }}>
|
<pre style={{ whiteSpace: "pre-wrap", margin: 0 }}>
|
||||||
{participant && (
|
{participant && (
|
||||||
<div>
|
<div>
|
||||||
Cosmos Address: {participant.cosmos_address} <br />
|
Cosmos Address: {participant.cosmosAddress} <br />
|
||||||
Ethereum Address: {participant.ethereum_address} <br />
|
Nitro Address: {participant.nitroAddress} <br />
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -39,7 +39,7 @@ const SignWithCosmos = () => {
|
|||||||
transactionMessage: MsgOnboardParticipantEncodeObject
|
transactionMessage: MsgOnboardParticipantEncodeObject
|
||||||
) => {
|
) => {
|
||||||
if (!ethAddress) {
|
if (!ethAddress) {
|
||||||
enqueueSnackbar("Set ethereum address");
|
enqueueSnackbar("Set nitro address");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user