Change transaction object validator
This commit is contained in:
parent
214724ba10
commit
b87e836fc5
@ -35,7 +35,7 @@ class TransactionValidator
|
|||||||
if (AddressValidator::validate($value['from']) === false) {
|
if (AddressValidator::validate($value['from']) === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isset($value['to']) && AddressValidator::validate($value['to']) === false) {
|
if (isset($value['to']) && AddressValidator::validate($value['to']) === false && $value['to'] !== '') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isset($value['gas']) && QuantityValidator::validate($value['gas']) === false) {
|
if (isset($value['gas']) && QuantityValidator::validate($value['gas']) === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user