Skip to content

Commit e617031

Browse files
authored
Update chain overrides example (#290)
1 parent 41bdadf commit e617031

File tree

1 file changed

+15
-13
lines changed
  • src/server/routes/configuration/chains

1 file changed

+15
-13
lines changed

src/server/routes/configuration/chains/update.ts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ const BodySchema = Type.Object({
2323
});
2424

2525
BodySchema.examples = [
26-
[
27-
{
28-
name: "Localhost",
29-
chain: "ETH",
30-
rpc: ["http://localhost:8545"],
31-
nativeCurrency: {
32-
name: "Ether",
33-
symbol: "ETH",
34-
decimals: 18,
26+
{
27+
chainOverrides: [
28+
{
29+
name: "Localhost",
30+
chain: "ETH",
31+
rpc: ["http://localhost:8545"],
32+
nativeCurrency: {
33+
name: "Ether",
34+
symbol: "ETH",
35+
decimals: 18,
36+
},
37+
chainId: 1337,
38+
slug: "localhost",
3539
},
36-
chainId: 1337,
37-
slug: "localhost",
38-
},
39-
],
40+
],
41+
},
4042
];
4143

4244
export async function updateChainsConfiguration(fastify: FastifyInstance) {

0 commit comments

Comments
 (0)