Skip to content

Commit 4cefee2

Browse files
committed
add link to the sep-51 spec on git
1 parent a616cd4 commit 4cefee2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/XDR_MIGRATION.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ do; they're brand-new capabilities):
2929
| Method | Description |
3030
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
3131
| `value.toXdrObject()` / `Class.fromXdrObject(wire)` | Bridges instance ↔ wire-shape object. Legacy types directly held their wire shape, so this distinction wasn't meaningful. |
32-
| `value.toJson()` / `Class.fromJson(json)` | SEP-0051-compliant JSON serialization. See § 13. |
32+
| `value.toJson()` / `Class.fromJson(json)` | [SEP-51](https://stellar.org/protocol/sep-51)-compliant JSON serialization. See § 13. |
3333

3434
`toJSON()` (capital JSON) is **kept as-is** — it's a JavaScript standard called
3535
automatically by `JSON.stringify()`, and renaming it would break that
@@ -569,8 +569,9 @@ If you previously did `someMemo.value === "expected-string"`, switch to
569569

570570
## 13. SEP-0051 JSON output: `toJson()` / `fromJson()`
571571

572-
Every generated XDR class has SEP-0051-compliant JSON serialization built in.
573-
New in this release; no legacy equivalent.
572+
Every generated XDR class has
573+
[SEP-51](https://stellar.org/protocol/sep-51)-compliant JSON serialization built
574+
in. New in this release; no legacy equivalent.
574575

575576
```ts
576577
// Encode any XDR value to JSON

0 commit comments

Comments
 (0)