@@ -55,7 +55,7 @@ tape('[Transaction]', function (t) {
55
55
const privKey = Buffer . from ( txFixtures [ 0 ] . privateKey , 'hex' )
56
56
tx = tx . sign ( privKey )
57
57
const serialized = tx . serialize ( )
58
- st . throws ( ( ) => Transaction . fromRlpSerializedTx ( serialized ) )
58
+ st . throws ( ( ) => Transaction . fromSerializedTx ( serialized ) )
59
59
st . end ( )
60
60
}
61
61
)
@@ -131,7 +131,7 @@ tape('[Transaction]', function (t) {
131
131
const s1 = tx . serialize ( )
132
132
133
133
const s1Rlp = toBuffer ( '0x' + s1 . toString ( 'hex' ) )
134
- const tx2 = Transaction . fromRlpSerializedTx ( s1Rlp )
134
+ const tx2 = Transaction . fromSerializedTx ( s1Rlp )
135
135
const s2 = tx2 . serialize ( )
136
136
137
137
st . ok ( s1 . equals ( s2 ) )
@@ -182,7 +182,7 @@ tape('[Transaction]', function (t) {
182
182
"getMessageToSign(), getSenderPublicKey() (implicit call) -> verify EIP155 signature based on Vitalik's tests" ,
183
183
function ( st ) {
184
184
txFixturesEip155 . forEach ( function ( tx ) {
185
- const pt = Transaction . fromRlpSerializedTx ( toBuffer ( tx . rlp ) )
185
+ const pt = Transaction . fromSerializedTx ( toBuffer ( tx . rlp ) )
186
186
st . equal ( pt . getMessageToSign ( ) . toString ( 'hex' ) , tx . hash )
187
187
st . equal ( '0x' + pt . serialize ( ) . toString ( 'hex' ) , tx . rlp )
188
188
st . equal ( pt . getSenderAddress ( ) . toString ( ) , '0x' + tx . sender )
@@ -359,7 +359,7 @@ tape('[Transaction]', function (t) {
359
359
360
360
const serialized = tx . serialize ( )
361
361
362
- const reTx = Transaction . fromRlpSerializedTx ( serialized , { common } )
362
+ const reTx = Transaction . fromSerializedTx ( serialized , { common } )
363
363
st . equal ( reTx . verifySignature ( ) , true )
364
364
st . equal ( reTx . common . chainId ( ) , 42 )
365
365
@@ -394,11 +394,11 @@ tape('[Transaction]', function (t) {
394
394
const rawSigned = tx . serialize ( )
395
395
st . ok ( tx . isSigned ( ) )
396
396
397
- tx = Transaction . fromRlpSerializedTx ( rawUnsigned )
397
+ tx = Transaction . fromSerializedTx ( rawUnsigned )
398
398
st . notOk ( tx . isSigned ( ) )
399
399
tx = tx . sign ( privateKey )
400
400
st . ok ( tx . isSigned ( ) )
401
- tx = Transaction . fromRlpSerializedTx ( rawSigned )
401
+ tx = Transaction . fromSerializedTx ( rawSigned )
402
402
st . ok ( tx . isSigned ( ) )
403
403
404
404
const signedValues = ( rlp . decode ( rawSigned ) as any ) as Buffer [ ]
0 commit comments