Skip to content

Commit 871786f

Browse files
committed
Merge branch 'main' into fixes
2 parents b38f26c + 8855724 commit 871786f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

services/reference/ethereum/json-rpc-methods/eth_simulatev1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Ethereum eth_simulateV1
33
sidebar_label: eth_simulateV1
4-
description: Simulate transactions across mulitple blocks on Ethereum.
4+
description: Simulate transactions across multiple blocks on Ethereum.
55
---
66

77
import Tabs from '@theme/Tabs';

services/tutorials/ethereum/send-a-transaction/send-a-transaction-viem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ VS Code) without using `ts-node` or pre-compiling to JavaScript.
167167
The following is an example output:
168168

169169
```bash
170-
Mining transcation...
170+
Mining transaction...
171171
Tx mined https://sepolia.etherscan.io/tx/0x310588719e733118f50c0a1608e13b4e8bd5eb5891d546d89795c2041833abb6
172172
```
173173

@@ -224,4 +224,4 @@ async function sendTx() {
224224
}
225225

226226
sendTx()
227-
```
227+
```

src/components/ParserOpenRPC/DetailsBox/RenderParams.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ const getRefSchemaFromComponents = (initRef, components) => {
1212
const renderSchema = (schemaItem, schemas, name) => {
1313
if (!schemaItem) return <div>Invalid schema</div>
1414

15-
const resolveRef = ref => {
15+
const resolveRef = (ref, originalItem) => {
1616
const newSchema = getRefSchemaFromComponents(ref, schemas)
17-
return renderSchema(newSchema, schemas, name)
17+
// Preserve the original parameter's description when resolving references
18+
const resolvedSchema = {
19+
...newSchema,
20+
description: originalItem?.description || newSchema.description || newSchema.title || '',
21+
}
22+
return renderSchema(resolvedSchema, schemas, name)
1823
}
1924

20-
if (schemaItem?.schema?.$ref) return resolveRef(schemaItem.schema.$ref)
21-
if (schemaItem?.$ref) return resolveRef(schemaItem.$ref)
25+
if (schemaItem?.schema?.$ref) return resolveRef(schemaItem.schema.$ref, schemaItem)
26+
if (schemaItem?.$ref) return resolveRef(schemaItem.$ref, schemaItem)
2227

2328
const renderObject = (item, itemName) => {
2429
const requiredFields = Array.isArray(item.required) ? item.required : []

0 commit comments

Comments
 (0)