Skip to content

Commit

Permalink
CNS-213: small PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Jun 12, 2023
1 parent b360d89 commit b1a8b6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion x/projects/keeper/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,13 @@ func TestSetPolicySelectedProviders(t *testing.T) {
servers, keepers, _ctx := testkeeper.InitAllKeepers(t)
ctx := sdk.UnwrapSDKContext(_ctx)

projectData := prepareProjectsData(_ctx, keepers)[0]
adm1Addr := common.CreateNewAccount(_ctx, *keepers, 10000).Addr.String()
projectData := types.ProjectData{
Name: "name",
Enabled: true,
ProjectKeys: []types.ProjectKey{{Key: adm1Addr, Kinds: uint32(types.ProjectKey_ADMIN)}},
Policy: &types.Policy{MaxProvidersToPair: 2, GeolocationProfile: math.MaxUint64},
}
subAddr := projectData.ProjectKeys[0].Key
projPolicy := projectData.Policy

Expand Down
2 changes: 1 addition & 1 deletion x/projects/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ func (s *SELECTED_PROVIDERS_MODE) UnmarshalJSON(b []byte) error {
// Note that if the string cannot be found then it will be set to the zero value, 'Created' in this case.
*s = SELECTED_PROVIDERS_MODE(SELECTED_PROVIDERS_MODE_value[j])
return nil
}
}

0 comments on commit b1a8b6b

Please sign in to comment.