File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
main/scala/io/iohk/ethereum/network/p2p/messages
test/scala/io/iohk/ethereum/domain Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import io.iohk.ethereum.rlp.RLPImplicitConversions._
13
13
import io .iohk .ethereum .rlp .RLPImplicits ._
14
14
import io .iohk .ethereum .rlp ._
15
15
import io .iohk .ethereum .utils .ByteStringUtils .ByteStringOps
16
+ import io .iohk .ethereum .utils .Config
16
17
17
18
object BaseETH6XMessages {
18
19
object Status {
@@ -62,7 +63,7 @@ object BaseETH6XMessages {
62
63
case r : RLPList if r.items.isEmpty => AccessListItem (null , List .empty)
63
64
64
65
case RLPList (rlpAddress, rlpStorageKeys : RLPList ) =>
65
- val address = rlpAddress.decodeAs[Address ](" address " )
66
+ val address = rlpAddress.decodeAs[Address ](" address" )
66
67
val storageKeys = fromRlpList[BigInt ](rlpStorageKeys).toList
67
68
AccessListItem (address, storageKeys)
68
69
}
@@ -154,7 +155,7 @@ object BaseETH6XMessages {
154
155
155
156
object SignedTransactions {
156
157
157
- lazy val chainId : Byte = 1 .toByte // Config.blockchains.blockchainConfig.chainId
158
+ lazy val chainId : Byte = Config .blockchains.blockchainConfig.chainId
158
159
159
160
implicit class SignedTransactionEnc (val signedTx : SignedTransaction ) extends RLPSerializable {
160
161
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ class TransactionSpec
37
37
}
38
38
39
39
" Transaction type 01" should " be correctly serialized to rlp" in {
40
+
41
+ // binary values have be taken directly from core-geth own tests
42
+ // see https://github.com/ethereum/go-ethereum/blob/a580f7d6c54812ef47df94c6ffc974c9dbc48245/core/types/transaction_test.go#L71
43
+
40
44
val toAddr : Address = Address .apply(" b94f5374fce5edbc8e2a8697c15331677e6ebf0b" )
41
45
val tx : TransactionWithAccessList = TransactionWithAccessList (
42
46
3 ,
You can’t perform that action at this time.
0 commit comments