Skip to content

Commit 23d20e5

Browse files
authored
Omit deployments with missing RPCs from fee table (#552)
1 parent d260f76 commit 23d20e5

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

components/EntropyDeployments.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export interface EntropyDeployment {
44
explorer: string;
55
delay: string;
66
gasLimit: string;
7-
rpc: string;
7+
rpc?: string;
88
nativeCurrency: string;
99
}
1010

@@ -393,7 +393,6 @@ export const EntropyDeployments: Record<string, EntropyDeployment> = {
393393
delay: "",
394394
gasLimit: "500K",
395395
network: "testnet",
396-
rpc: "",
397396
nativeCurrency: "MON",
398397
},
399398
};

components/FeeTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { StyledTd } from "./Table";
77
const FeeTable = ({
88
deployments,
99
}: {
10-
deployments: Record<string, EntropyDeployment>;
10+
deployments: Record<string, Required<EntropyDeployment>>;
1111
}) => {
1212
const [fees, setFees] = useState<Record<string, string>>({});
1313

pages/entropy/current-fees.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Note that the fees shown below will vary over time with prevailing gas prices on
99
<FeeTable
1010
deployments={Object.fromEntries(
1111
Object.entries(EntropyDeployments).filter(
12-
([k, v]) => v.network === "mainnet"
12+
([k, v]) => v.network === "mainnet" && v.rpc !== undefined
1313
)
1414
)}
1515
/>
@@ -19,7 +19,7 @@ Note that the fees shown below will vary over time with prevailing gas prices on
1919
<FeeTable
2020
deployments={Object.fromEntries(
2121
Object.entries(EntropyDeployments).filter(
22-
([k, v]) => v.network === "testnet"
22+
([k, v]) => v.network === "testnet" && v.rpc !== undefined
2323
)
2424
)}
2525
/>

0 commit comments

Comments
 (0)