diff --git a/Eth.html b/Eth.html index d8c9d576..0ede8aef 100644 --- a/Eth.html +++ b/Eth.html @@ -195,7 +195,7 @@
"0x0000000000000000000000000000000000000000"
Checks that the address is the null address.
+Checks that the address is valid.
Checks that the address is valid.
+Checks that the address is the zero address.
Checks that the address is the null address.
+Checks that the address is valid.
true if the address is the null address.
+true if valid address.
-58 -59 -60+45 +46 +47 +48 +49 +50 +51 +52 +53
# File 'lib/eth/address.rb', line 58 +# File 'lib/eth/address.rb', line 45 -def null? - address == NULL +def valid? + if !matches_any_format? + false + elsif not_checksummed? + true + else + checksum_matches? + end end
Checks that the address is valid.
+Checks that the address is the zero address.
true if valid address.
+true if the address is the zero address.
-45 -46 -47 -48 -49 -50 -51 -52 -53+58 +59 +60
# File 'lib/eth/address.rb', line 45 +# File 'lib/eth/address.rb', line 58 -def valid? - if !matches_any_format? - false - elsif not_checksummed? - true - else - checksum_matches? - end +def zero? + address == ZERO end