Skip to content

Commit

Permalink
validPermission typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelrozanski committed Oct 5, 2017
1 parent 16bea90 commit a11eb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var _ sdk.Context = secureContext{}
func (c secureContext) WithPermissions(perms ...sdk.Actor) sdk.Context {
// the guard makes sure you only set permissions for the app you are inside
for _, p := range perms {
if !c.validPermisison(p) {
if !c.validPermission(p) {
err := errors.Errorf("Cannot set permission for %s/%s on (app=%s, ibc=%b)",
p.ChainID, p.App, c.app, c.ibc)
panic(err)
Expand All @@ -48,7 +48,7 @@ func (c secureContext) WithPermissions(perms ...sdk.Actor) sdk.Context {
}
}

func (c secureContext) validPermisison(p sdk.Actor) bool {
func (c secureContext) validPermission(p sdk.Actor) bool {
// if app is set, then it must match
if c.app != "" && c.app != p.App {
return false
Expand Down

0 comments on commit a11eb1e

Please sign in to comment.