We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3221837 commit dfbc9abCopy full SHA for dfbc9ab
src/main/scala/io/iohk/ethereum/jsonrpc/TransactionRequest.scala
@@ -2,6 +2,7 @@ package io.iohk.ethereum.jsonrpc
2
3
import akka.util.ByteString
4
import io.iohk.ethereum.domain.{Address, Transaction}
5
+import io.iohk.ethereum.utils.Config
6
7
case class TransactionRequest(
8
from: Address,
@@ -20,7 +21,7 @@ case class TransactionRequest(
20
21
nonce = nonce.getOrElse(defaultNonce),
22
gasPrice = gasPrice.getOrElse(defaultGasPrice),
23
gasLimit = gasLimit.getOrElse(defaultGasLimit),
- receivingAddress = if (to.contains(Address(0))) None else to,
24
+ receivingAddress = if (Config.testmode) to.filter(_ != Address(0)) else to,
25
value = value.getOrElse(BigInt(0)),
26
payload = data.getOrElse(ByteString.empty)
27
)
0 commit comments