diff --git a/src/app/(sidebar)/transactions-explorer/tx/[tx]/components/TransactionDetails.tsx b/src/app/(sidebar)/transactions-explorer/tx/[tx]/components/TransactionDetails.tsx index e8dc6bcf1..77232a358 100644 --- a/src/app/(sidebar)/transactions-explorer/tx/[tx]/components/TransactionDetails.tsx +++ b/src/app/(sidebar)/transactions-explorer/tx/[tx]/components/TransactionDetails.tsx @@ -50,8 +50,7 @@ export function TransactionDetails({ const [xdrJson, setXdrJson] = useState | null>(null); const [xdr, setXdr] = useState(""); const innerTx = tx.feeBump - ? // @ts-expect-error fee bump tx has innerTx. - tx.envelopeXdr.value().tx().innerTx().value().tx() + ? tx.envelopeXdr.value().tx().innerTx().value().tx() : tx.envelopeXdr.value().tx(); const sourceAccount = StrKey.encodeEd25519PublicKey( innerTx.sourceAccount().value(), diff --git a/src/store/createStore.ts b/src/store/createStore.ts index afb14644a..cc70ca955 100644 --- a/src/store/createStore.ts +++ b/src/store/createStore.ts @@ -214,11 +214,15 @@ interface CreateStoreOptions { // lab that runs on quickstart. This can be enabled by passing // `NEXT_PUBLIC_DEFAULT_NETWORK=custom` as an env var. const defaultCustomNetwork = { - id: "custom", + id: "custom" as const, label: "Custom", - horizonUrl: "http://localhost:8000", - rpcUrl: "http://localhost:8000/rpc", - passphrase: "Standalone Network ; February 2017", + horizonUrl: + process.env.NEXT_PUBLIC_CUSTOM_HORIZON_URL ?? "http://localhost:8000", + rpcUrl: + process.env.NEXT_PUBLIC_CUSTOM_RPC_URL ?? "http://localhost:8000/rpc", + passphrase: + process.env.NEXT_PUBLIC_CUSTOM_PASSPHRASE ?? + "Standalone Network ; February 2017", }; const initNetwork =