gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + gno.land: a blockchain for timeless code and fair open-source.
https://gno.land/
Other
899 stars 377 forks source link

docs(std/testing): fix NewUserRealm reference usage #3178

Closed MikaelVallenet closed 3 days ago

MikaelVallenet commented 4 days ago

FIX: https://docs.gno.land/reference/stdlibs/std/testing/#testsetrealm

FROM

Usage

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

TO

Usage

addr := std.Address("g1ecely4gjy0yl6s9kt409ll330q9hk2lj9ls3ec")
std.TestSetRealm(std.NewUserRealm(addr))
// or 
std.TestSetRealm(std.NewCodeRealm("gno.land/r/demo/users"))
Contributors' checklist... - [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
codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!