From 4ce5e7dd63af04dbe4eebfcb2b2bf2dd721f10cd Mon Sep 17 00:00:00 2001 From: Nikita Yutanov Date: Wed, 8 Nov 2023 11:36:27 +0300 Subject: [PATCH] Fix tamagotchi battle envs (#93) --- frontend/non-fungible-token/src/index.tsx | 6 +++--- frontend/tamagotchi-battle/frontend/src/app/consts.ts | 2 +- .../frontend/src/features/battle/consts.ts | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/non-fungible-token/src/index.tsx b/frontend/non-fungible-token/src/index.tsx index adc297b3c..3a26c22be 100644 --- a/frontend/non-fungible-token/src/index.tsx +++ b/frontend/non-fungible-token/src/index.tsx @@ -6,7 +6,7 @@ const container = document.getElementById('root'); const root = createRoot(container as HTMLElement); root.render( - // - , - // , + + , + , ); diff --git a/frontend/tamagotchi-battle/frontend/src/app/consts.ts b/frontend/tamagotchi-battle/frontend/src/app/consts.ts index eac15e102..51dcff57d 100644 --- a/frontend/tamagotchi-battle/frontend/src/app/consts.ts +++ b/frontend/tamagotchi-battle/frontend/src/app/consts.ts @@ -3,7 +3,7 @@ export const LOCAL_STORAGE = { }; export const ENV = { - NODE: 'wss://testnet.vara-network.io', + NODE: process.env.REACT_APP_NODE_ADDRESS as string, }; export const ROUTES = { diff --git a/frontend/tamagotchi-battle/frontend/src/features/battle/consts.ts b/frontend/tamagotchi-battle/frontend/src/features/battle/consts.ts index 44cbf6cc6..31478e738 100644 --- a/frontend/tamagotchi-battle/frontend/src/features/battle/consts.ts +++ b/frontend/tamagotchi-battle/frontend/src/features/battle/consts.ts @@ -1 +1,3 @@ -export const BATTLE_ADDRESS = '0xf74ebe31a9659d3caccf522336ae2805f894d85619d60744755816f67fa2c158'; +import { HexString } from '@polkadot/util/types'; + +export const BATTLE_ADDRESS = process.env.REACT_APP_BATTLE_ADDRESS as HexString;