Skip to content

Commit

Permalink
Merge pull request #632 from lavanet/CNS-Remove-error
Browse files Browse the repository at this point in the history
CNS: remove error and add handler v0.20.2
  • Loading branch information
Yaroms authored Jul 19, 2023
2 parents 16cbd7f + c9448d3 commit 17324bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const (
// Upgrades add here future upgrades (upgrades.Upgrade)
var Upgrades = []upgrades.Upgrade{
upgrades.Upgrade_0_20_1,
upgrades.Upgrade_0_20_2,
}

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/empty_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ var Upgrade_0_20_1 = Upgrade{
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}

var Upgrade_0_20_2 = Upgrade{
UpgradeName: "v0.20.2",
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}
2 changes: 1 addition & 1 deletion x/pairing/keeper/pairing.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (k Keeper) GetProjectStrictestPolicy(ctx sdk.Context, project projectstypes
if !allowed {
return planstypes.Policy{}, fmt.Errorf("chain ID not allowed in all policies, or collections specified and have no intersection %#v", policies)
}
utils.LavaFormatError("BANANABIG,", nil, utils.Attribute{Key: "chainPolicy", Value: chainPolicy}, utils.Attribute{Key: "policies", Value: policies}, utils.Attribute{Key: "policiesLen", Value: len(policies)})

geolocation := k.CalculateEffectiveGeolocationFromPolicies(policies)

providersToPair, err := k.CalculateEffectiveProvidersToPairFromPolicies(policies)
Expand Down

0 comments on commit 17324bb

Please sign in to comment.