Commit a68eb39
authored
Fix Address constructor and stale SDK version in EVM basics migration guide (#2690)
* Fix fabricated Address constructor and stale SDK version in EVM basics migration guide
### What
Replace the non-existent `Address::new(...)` call with the SDK's actual way to get an address in this context, and bump the pinned soroban-sdk version.
### Why
`Address` has no public byte-array constructor, so the example as written can't compile, and the pinned SDK version was a full major behind current.
* Use Address::from_str instead of a testutils-only constructor
### What
Construct the example address with `Address::from_str` instead of the test-only `Address::generate` helper.
### Why
This snippet is general reference code, not a test, so it shouldn't rely on an API that's only available under the `testutils` feature.
* Use a placeholder strkey instead of a fabricated real-looking address
### What
Show `"G..."` as the strkey argument instead of a made-up full-looking public key.
### Why
A real-looking G-address reads as if it were meaningful; a placeholder makes clear it's just illustrating the argument shape.1 parent 85e5080 commit a68eb39
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
0 commit comments