git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit d39de3e772adfb891056fd28b873a362f305e36d

Address: include equals

Alex Beregszaszi committed on 8/17/2016, 5:18:23 PM
Parent: 81d0532d8db56cc223279a44230e171e4fb1a3dc

Files changed

address.jschanged
address.jsView
@@ -33,5 +33,9 @@
3333
3434 isZero () {
3535 return this._value.equals(ethUtils.zeros(20))
3636 }
37+
38+ equals (address) {
39+ return this._value.toString('hex') === address.toBuffer().toString('hex')
40+ }
3741 }

Built with git-ssb-web