Skip to content

Commit bd6da3a

Browse files
committed
manual fixes
1 parent cf8f21c commit bd6da3a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

examples/gno.land/r/morgan/chess/chess_test.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (tc testCommandFunc) Run(t *testing.T, bufs map[string]string) { tc(t, bufs
255255
// form func(gameID string) string (hence ID), and that takes as the first
256256
// parameter a <player> which will be the caller.
257257
type testCommandColorID struct {
258-
fn func(string) string
258+
fn func(realm, string) string
259259
addr std.Address
260260
}
261261

examples/gno.land/r/moul/config/config_test.gno

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func setupTest(cur realm, t *testing.T) {
3131
}
3232

3333
func TestAddManager(cur realm, t *testing.T) {
34-
setupTest(t)
34+
setupTest(cur, t)
3535

3636
// Origin adds manager1 - Should succeed
3737
testing.SetRealm(std.NewUserRealm(originAddr))
@@ -63,7 +63,7 @@ func TestAddManager(cur realm, t *testing.T) {
6363
}
6464

6565
func TestRemoveManager(cur realm, t *testing.T) {
66-
setupTest(t)
66+
setupTest(cur, t)
6767

6868
// Add manager1 first
6969
testing.SetRealm(std.NewUserRealm(originAddr))
@@ -99,8 +99,8 @@ func TestRemoveManager(cur realm, t *testing.T) {
9999
uassert.ErrorContains(t, err, "current authority is not a MemberAuthority", "removing manager should fail after transfer")
100100
}
101101

102-
func TestListManagers(t *testing.T) {
103-
setupTest(t)
102+
func TestListManagers(cur realm, t *testing.T) {
103+
setupTest(cur, t)
104104
initialList := ListManagers(cross)
105105
assertAddrSliceEqual(t, []std.Address{originAddr}, initialList)
106106
// Add manager1 and manager2
@@ -135,8 +135,8 @@ func TestListManagers(t *testing.T) {
135135
uassert.True(t, len(list3) == 0, "manager list should be empty after transfer")
136136
}
137137

138-
func TestHasManager(t *testing.T) {
139-
setupTest(t)
138+
func TestHasManager(cur realm, t *testing.T) {
139+
setupTest(cur, t)
140140

141141
// Initially, only origin is manager
142142
uassert.True(t, HasManager(cross, originAddr), "origin should initially be a manager")
@@ -164,8 +164,8 @@ func TestHasManager(t *testing.T) {
164164
uassert.False(t, HasManager(cross, nonManagerAddr), "HasManager should be false after transfer")
165165
}
166166

167-
func TestTransferManagement(t *testing.T) {
168-
setupTest(t)
167+
func TestTransferManagement(cur realm, t *testing.T) {
168+
setupTest(cur, t)
169169

170170
// Add manager1
171171
testing.SetRealm(std.NewUserRealm(originAddr))
@@ -214,8 +214,8 @@ func TestTransferManagement(t *testing.T) {
214214
uassert.ErrorContains(t, err, "new authority cannot be nil", "transferring to nil should fail")
215215
}
216216

217-
func TestTransferToContractAuthority(t *testing.T) {
218-
setupTest(t) // Origin is the initial manager
217+
func TestTransferToContractAuthority(cur realm, t *testing.T) {
218+
setupTest(cur, t) // Origin is the initial manager
219219

220220
contractPath := "gno.land/r/testcontract"
221221
contractRealm := std.NewCodeRealm(contractPath) // Simulate contract realm

examples/gno.land/r/n2p5/loci/loci.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if one exists. For instance append :g1j39fhg29uehm7twwnhvnpz3ggrm6tprhq65t0t to
4949
this URL to view the value stored at that address.
5050
`
5151
}
52-
return renderGet(std.Address(path))
52+
return renderGet(cross, std.Address(path))
5353
}
5454

5555
func renderGet(cur realm, addr std.Address) string {

0 commit comments

Comments
 (0)