git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit b96f738ab0a024a7779a0bc8ad922aeda692fa20

Address: include zero() to get an instance of the zero address

Alex Beregszaszi committed on 8/26/2016, 9:13:30 PM
Parent: 104b97b6875d1f6ba6bd5ebaa5b680ad29f492bb

Files changed

address.jschanged
address.jsView
@@ -27,8 +27,12 @@
2727 toString () {
2828 return '0x' + this._value.toString('hex', 40)
2929 }
3030
31+ static zero() {
32+ return new Address('0x0000000000000000000000000000000000000000')
33+ }
34+
3135 isZero () {
3236 return this._value.isZero()
3337 }
3438

Built with git-ssb-web