fix checking weights
@@ -123,7 +123,7 @@ func (a *Accounts) Create(
}
// if more than one key is provided and at least one weight is specified, make sure there isn't a mismatch
- if len(pubKeys) > 1 && len(keyWeights) > 0 && len(pubKeys) != len(keyWeights) {
+ if len(keyWeights) > 0 && len(pubKeys) != len(keyWeights) {
return nil, fmt.Errorf(
"number of keys and weights provided must match, number of provided keys: %d, number of provided key weights: %d",
len(pubKeys),
