CallValidator.
This commit is contained in:
parent
0f59ac9223
commit
80e686dec9
@ -29,10 +29,13 @@ class CallValidator
|
||||
if (!is_array($value)) {
|
||||
return false;
|
||||
}
|
||||
if (isset($value['from']) && AddressValidator::validate($value['from']) === false && $value['from'] !== '') {
|
||||
if (isset($value['from']) && AddressValidator::validate($value['from']) === false) {
|
||||
return false;
|
||||
}
|
||||
if (isset($value['to']) && AddressValidator::validate($value['to']) === false && $value['to'] !== '') {
|
||||
if (!isset($value['to'])) {
|
||||
return false;
|
||||
}
|
||||
if (AddressValidator::validate($value['to']) === false) {
|
||||
return false;
|
||||
}
|
||||
if (isset($value['gas']) && QuantityValidator::validate($value['gas']) === false) {
|
||||
|
Loading…
Reference in New Issue
Block a user