Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit f0cfb2e

Browse files
committed
0x api.js tests should also verify that raw tx is same between txes with different types
1 parent 61c64fe commit f0cfb2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ tape('[Transaction]: Basic functions', function (t) {
276276
}
277277
var txWith0x = new Transaction(rawTxWith0x)
278278

279+
st.deepEqual(txWithout0x.raw, txWith0x.raw)
279280
st.equal(txWithout0x.hash().toString('hex'), txWith0x.hash().toString('hex'))
280281
st.equal(txWithout0x.serialize().toString('hex'), txWith0x.serialize().toString('hex'))
281282
st.end()
@@ -308,6 +309,7 @@ tape('[Transaction]: Basic functions', function (t) {
308309
]
309310
var txWithout0x = new Transaction(rawTxWithout0x)
310311

312+
st.deepEqual(txWithout0x.raw, txWith0x.raw)
311313
st.equal(txWithout0x.hash().toString('hex'), txWith0x.hash().toString('hex'))
312314
st.equal(txWithout0x.serialize().toString('hex'), txWith0x.serialize().toString('hex'))
313315
st.end()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy