Skip to content

Commit

Permalink
docs(std/testing): fix NewUserRealm reference usage (#3178)
Browse files Browse the repository at this point in the history
FIX: https://docs.gno.land/reference/stdlibs/std/testing/#testsetrealm

FROM

#### Usage
```go
addr := std.Address("g1ecely4gjy0yl6s9kt409ll330q9hk2lj9ls3ec")
std.TestSetRealm(std.NewUserRealm(""))
// or 
std.TestSetRealm(std.NewCodeRealm("gno.land/r/demo/users"))
```

TO

#### Usage
```go
addr := std.Address("g1ecely4gjy0yl6s9kt409ll330q9hk2lj9ls3ec")
std.TestSetRealm(std.NewUserRealm(addr))
// or 
std.TestSetRealm(std.NewCodeRealm("gno.land/r/demo/users"))
```

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
</details>
  • Loading branch information
MikaelVallenet authored Nov 22, 2024
1 parent 549da06 commit 4d80378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/stdlibs/std/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Should be used in combination with [`NewUserRealm`](#newuserrealm) &
#### Usage
```go
addr := std.Address("g1ecely4gjy0yl6s9kt409ll330q9hk2lj9ls3ec")
std.TestSetRealm(std.NewUserRealm(""))
std.TestSetRealm(std.NewUserRealm(addr))
// or
std.TestSetRealm(std.NewCodeRealm("gno.land/r/demo/users"))
```
Expand Down

0 comments on commit 4d80378

Please sign in to comment.