diff --git a/examples/gno.land/p/demo/simpledao/membstore_test.gno b/examples/gno.land/p/demo/simpledao/membstore_test.gno index 21a46652a5b..e9c46032eac 100644 --- a/examples/gno.land/p/demo/simpledao/membstore_test.gno +++ b/examples/gno.land/p/demo/simpledao/membstore_test.gno @@ -21,7 +21,6 @@ func generateMembers(t *testing.T, count int) []dao.Member { for i := 0; i < count; i++ { members = append(members, dao.Member{ Address: testutils.TestAddress(ufmt.Sprintf("member %d", i)), - Name: "test member", VotingPower: 10, }) } @@ -87,7 +86,6 @@ func TestMembStore_GetMembers(t *testing.T) { } uassert.Equal(t, member.VotingPower, fetchedMember.VotingPower) - uassert.Equal(t, member.Name, fetchedMember.Name) } } }) @@ -270,11 +268,11 @@ func TestMembStore_UpdateMember(t *testing.T) { members := generateMembers(t, 1) m := NewMembStore(WithInitialMembers(members)) - name := "new name!" - members[0].Name = name + votingPower := uint64(300) + members[0].VotingPower = votingPower // Attempt to update a member uassert.NoError(t, m.UpdateMember(members[0].Address, members[0])) - uassert.Equal(t, name, m.GetMembers()[0].Name) + uassert.Equal(t, votingPower, m.GetMembers()[0].VotingPower) }) } diff --git a/examples/gno.land/p/gov/dao/members.gno b/examples/gno.land/p/gov/dao/members.gno index 965d13eea00..7c3728204d9 100644 --- a/examples/gno.land/p/gov/dao/members.gno +++ b/examples/gno.land/p/gov/dao/members.gno @@ -29,6 +29,5 @@ type MemberStore interface { // Member holds the relevant member information type Member struct { Address std.Address // bech32 gno address of the member (unique) - Name string // name associated with the member VotingPower uint64 // the voting power of the member }