diff --git a/examples/gno.land/p/demo/zteams/gno.mod b/examples/gno.land/p/demo/zteams/gno.mod index 62501d4cfae..89033ba223a 100644 --- a/examples/gno.land/p/demo/zteams/gno.mod +++ b/examples/gno.land/p/demo/zteams/gno.mod @@ -1 +1,7 @@ module gno.land/p/demo/zteams + +require ( + gno.land/p/demo/avl v0.0.0-latest + gno.land/p/demo/testutils v0.0.0-latest + gno.land/p/demo/users v0.0.0-latest +) diff --git a/examples/gno.land/p/demo/zteams/teams.gno b/examples/gno.land/p/demo/zteams/teams.gno index 71dd062d072..47096b500fb 100644 --- a/examples/gno.land/p/demo/zteams/teams.gno +++ b/examples/gno.land/p/demo/zteams/teams.gno @@ -72,7 +72,7 @@ func (tm *TeamManager) RemoveAdmin(teamAddress std.Address, userAddress std.Addr return err } - if !teamm.isOwner(requester) { + if !team.isOwner(requester) { return ErrNotOwner } diff --git a/examples/gno.land/p/demo/zteams/teams_test.gno b/examples/gno.land/p/demo/zteams/teams_test.gno index fb1d5be992d..ec8a7d5f415 100644 --- a/examples/gno.land/p/demo/zteams/teams_test.gno +++ b/examples/gno.land/p/demo/zteams/teams_test.gno @@ -2,6 +2,7 @@ package zteams import ( "std" + "gno.land/p/demo/testutils" "gno.land/p/demo/users" "testing" ) @@ -9,22 +10,22 @@ import ( // Helper function to create a sample user. func createUser(address string) users.User { return users.User{ - Address: std.Address(address), + Address: testutils.TestAddress(address), Name: "Test User", Profile: "Sample profile", Number: 1, Invites: 1, - Inviter: std.Address("inviter"), + Inviter: testutils.TestAddress("inviter"), } } // Helper function to create a sample team. func createTeam(address, owner string) *Team { return &Team{ - Address: std.Address(address), + Address: testutils.TestAddress(address), TeamName: "Test Team", TeamProfile: "This is a test team profile", - Owner: std.Address(owner), + Owner: testutils.TestAddress(owner), Admins: make(map[string]bool), // Updated to use string keys Disbursers: make(map[string]bool), // Updated to use string keys }