Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export function TransactionDetails({
const [xdrJson, setXdrJson] = useState<Record<string, unknown> | 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(),
Expand Down
12 changes: 8 additions & 4 deletions src/store/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down