Repository navigation
chore: update realm for latest gno compatibility - #176
Merged
Merged
Conversation
D4ryl00
commented
Mar 24, 2026
Contributor
- Update package imports: p/nt/avl → p/nt/avl/v0, p/nt/ufmt → p/nt/ufmt/v0
- Remove dependency on p/jefft0/avlhelpers (not deployed on gnoland/test12); inline listByteStringKeysByPrefix in util.gno
- Remove r/sys/users registration requirement — unregistered users fall back to their address as username, making the realm usable on chains where the whitelist is not configured
- Add resolveAddr() in render.gno so render paths accept raw addresses, not just registered names
- Replace hardcoded /r/berty/social strings with a gRealmPath variable initialized at deploy time via runtime.CurrentRealm().PkgPath(), so rendered links are always correct regardless of deployment path
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Contributor
Author
|
@jefft0 I added a second commit with tests so you can run them easily with gnodev. Check the README.md. |
Contributor
Author
I would add these tests in a new PR, but I think it would be useful for you if you have them now. |
Contributor
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
jefft0
approved these changes
Mar 25, 2026
jefft0
left a comment
Contributor
There was a problem hiding this comment.
Tested in gnoweb locally. tests/test.sh passess locally.
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


