Skip to content

Commit

Permalink
needed network key to show order link
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Feb 15, 2025
1 parent 8144a1b commit 3c5984f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@
return;
}
if (!networkKey) {
error = DeploymentStepErrors.NO_CHAIN;
return;
}
let result: HandleAddOrderResult | null = null;
checkingDeployment = true;
Expand All @@ -225,9 +230,15 @@
checkingDeployment = false;
const onAccept = () => {
if (!networkKey) {
error = DeploymentStepErrors.NO_CHAIN;
return;
}
handleDeployModal({
...result,
subgraphUrl: subgraphUrl
subgraphUrl: subgraphUrl,
network: networkKey
});
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/src/lib/stores/transactionStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export type DeploymentTransactionArgs = {
orderbookAddress: Hex;
chainId: number;
subgraphUrl: string;
network?: string;
network: string;
};

export type DepositOrWithdrawTransactionArgs = {
Expand Down
1 change: 1 addition & 0 deletions packages/ui-components/src/lib/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export type DeploymentArgs = {
orderbookAddress: Hex;
chainId: number;
subgraphUrl: string;
network: string;
};
2 changes: 1 addition & 1 deletion packages/webapp/src/lib/components/DeployModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
export let orderbookAddress: Hex;
export let chainId: number;
export let subgraphUrl: string;
export let network: string | undefined = undefined;
export let network: string;
const messages = {
success: 'Your strategy was successfully deployed.',
Expand Down

0 comments on commit 3c5984f

Please sign in to comment.