Skip to content

Commit 4bf9059

Browse files
authored
fix: In gnoweb realm_help.html, update to Data.Config.HelpRemote and Data.Config.HelpChainID (#1496)
This is a followup to PR #1444 . In gnoweb.go, the configuration is [assigned to Config](https://github.com/gnolang/gno/blob/b525e8bd92efd1935c091c3491202a10ef4a5906/gno.land/pkg/gnoweb/gnoweb.go#L173) . Previously, the assignment was changed to Flags but it has been changed again to Config. (I tried to find the commit to blame but this file has been moved around and renamed too many times.) In realm_help.html, we now need to refer to these with the prefix Data.Config (not Data.Flags) . Without this change, the chain ID and remote on the help pages are blank. With this change, they display correctly. Signed-off-by: Jeff Thompson <jeff@thefirst.org>
1 parent a0fb0cc commit 4bf9059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gno.land/pkg/gnoweb/views/realm_help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88
<body onload="main()">
99
<div id="root">
10-
<div id="data" data-realm-path="{{ .Data.RealmPath }}" data-remote="{{ .Data.Flags.HelpRemote }}" data-chainid="{{ .Data.Flags.HelpChainID }}" />
10+
<div id="data" data-realm-path="{{ .Data.RealmPath }}" data-remote="{{ .Data.Config.HelpRemote }}" data-chainid="{{ .Data.Config.HelpChainID }}" />
1111
<div id="header">{{ template "header_logo" }} {{ template "header_buttons" }}</div>
1212
<div class="inline-list">
1313
<span id="logo_path"> <a href="{{ .Data.DirPath }}">{{ .Data.DirPath }}</a>?help </span>

0 commit comments

Comments
 (0)