[beta] Backporting (#6675)

* Required validators >= num owners (#6551)

* Debounce sync status. (#6572)

* Fixed network protocol version negotiation

* Renamed RPC receipt statusCode field to status

* Fixed RETURNDATA size for built-ins
This commit is contained in:
Arkadiy Paronyan
2017-10-09 13:07:57 +02:00
committed by GitHub
parent 67bd9a33cf
commit 2d4f4bdd61
7 changed files with 46 additions and 25 deletions

View File

@@ -281,6 +281,12 @@ export default class CreateWalletStore {
const daylimitValidation = validateUint(_wallet.daylimit);
const nameValidation = validateName(_wallet.name);
const owners = _wallet.owners.filter((owner) => !/^(0x)?0*$/.test(owner));
if (_wallet.required > owners.length) {
requiredValidation.valueError = 'the number of required validators should be lower or equal the number of owners';
}
const errors = {
address: addressValidation.addressError,
account: accountValidation.addressError,