git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit d40898a1c0e4f37c6b28da6da6646db86398ebcb

Transaction: parse Address properly

Alex Beregszaszi committed on 8/24/2016, 2:24:49 AM
Parent: f879199c3cfb67185d4d4ae91f4ff03a55d831ba

Files changed

transaction.jschanged
transaction.jsView
@@ -36,16 +36,16 @@
3636 return Uint8Array.from(this._tx.data)
3737 }
3838
3939 get from () {
40- return new Address(this._tx.getSenderAddress())
40+ return new Address('0x' + this._tx.getSenderAddress().toString('hex'))
4141 }
4242
4343 get to () {
4444 if (this._tx.to.length === 0) {
4545 return new Address('0x0000000000000000000000000000000000000000')
4646 }
47- return new Address(this._tx.to)
47+ return new Address('0x' + this._tx.to.toString('hex'))
4848 }
4949
5050 get isSend () {
5151 }

Built with git-ssb-web