Make mixnet contract configurable

This commit is contained in:
Mark Sinclair
2024-02-13 17:47:29 +00:00
committed by fmtabbara
parent 22979ce245
commit c8b911d5d0
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -24,3 +24,6 @@ export const MIXNODE_API_ERROR = "We're having trouble finding that record, plea
export const NYM_WEBSITE = 'https://nymtech.net';
export const NYM_BIG_DIPPER = 'https://mixnet.explorers.guru';
export const NYM_MIXNET_CONTRACT =
process.env.NYM_MIXNET_CONTRACT || 'n17srjznxl9dvzdkpwpw24gg668wc73val88a6m5ajg6ankwvz9wtst0cznr';
@@ -9,9 +9,9 @@ import { ModalListItem } from './ModalListItem';
import { DelegationModalProps } from './DelegationModal';
import { unymToNym, validateAmount } from '../../utils/currency';
import { urls } from '../../utils';
import { NYM_MIXNET_CONTRACT } from '../../api/constants';
const MIN_AMOUNT_TO_DELEGATE = 10;
const MIXNET_CONTRACT_ADDRESS = 'n17srjznxl9dvzdkpwpw24gg668wc73val88a6m5ajg6ankwvz9wtst0cznr';
export const DelegateModal: FCWithChildren<{
mixId: number;
@@ -97,7 +97,7 @@ export const DelegateModal: FCWithChildren<{
const signerClient = await getSigningCosmWasmClient();
const tx = await signerClient.execute(
delgationAddress,
MIXNET_CONTRACT_ADDRESS,
NYM_MIXNET_CONTRACT,
{
delegate_to_mixnode: {
mix_id: delegationMixId,