Skip to content

Commit

Permalink
chore: update usage after interface change
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Dec 17, 2024
1 parent 58c1011 commit 98afc2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestRegistry(t *testing.T) {
registry.Execute(registerMsg)

// Test messages execution
msgs := registry.MessagesFromJSON(json.Must(json.Unmarshal(`[{"type":"CopyMessage","payload":"Hello"}]`)).MustArray())
msgs := registry.MessagesFromJSON(json.Must(json.Unmarshal([]byte(`[{"type":"CopyMessage","payload":"Hello"}]`))).MustArray())
if len(msgs) != 1 {
t.Errorf("Expected 1 message, got %d", len(msgs))
}
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/r/teritori/dao_realm/dao_realm_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestUpdateMembers(t *testing.T) {
t.Errorf("Expected:\n%s\nGot:\n%s", expected, membersJSON)
}

totalPower := group.TotalPowerAtHeight(havl.Latest)
totalPower := group.TotalPowerAtHeight(havl.Latest, nil)
if totalPower != 7 {
t.Errorf("Expected total power to be 6, got %d", totalPower)
}
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestUpdateMembers(t *testing.T) {
t.Errorf("Expected:\n%s\nGot:\n%s", expected, membersJSON)
}

totalPower := group.TotalPowerAtHeight(havl.Latest)
totalPower := group.TotalPowerAtHeight(havl.Latest, nil)
if totalPower != 6 {
t.Errorf("Expected total power to be 6, got %d", totalPower)
}
Expand Down

0 comments on commit 98afc2f

Please sign in to comment.