diff --git a/pkg/governance/cli.go b/pkg/governance/cli.go index 45ad713..cddd098 100644 --- a/pkg/governance/cli.go +++ b/pkg/governance/cli.go @@ -210,6 +210,11 @@ func checkPermission(space string, account accounts.Account) bool { return true } + if validators == nil { + fmt.Printf("can not check permission, maybe rpc error") + return false + } + if _, ok := validators[address.ToBech32(account.Address)]; ok { return true } else {