Skip to content

Commit

Permalink
formatAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Richez authored and strauss-m committed Sep 16, 2021
1 parent 0d86c95 commit 4cbabc5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/io/iohk/ethereum/domain/Transaction.scala
Expand Up @@ -35,7 +35,7 @@ object Transaction {
case tx: TransactionWithAccessList => tx.copy(gasLimit = gl)
}

def accessList(tx: Transaction) =
def accessList(tx: Transaction): List[AccessListItem] =
tx match {
case transaction: TransactionWithAccessList => transaction.accessList
case LegacyTransaction(nonce, gasPrice, gasLimit, receivingAddress, value, payload) => Nil
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/io/iohk/ethereum/extvm/ExtVMInterface.scala
@@ -1,6 +1,7 @@
package io.iohk.ethereum.extvm

import java.nio.ByteOrder

import akka.actor.ActorSystem
import akka.stream.OverflowStrategy
import akka.stream.scaladsl.Framing
Expand All @@ -9,12 +10,13 @@ import akka.stream.scaladsl.Sink
import akka.stream.scaladsl.Source
import akka.stream.scaladsl.Tcp
import akka.util.ByteString
import io.iohk.ethereum.domain.AccessListItem

import scala.annotation.tailrec
import scala.util.Failure
import scala.util.Success
import scala.util.Try

import io.iohk.ethereum.domain.AccessListItem
import io.iohk.ethereum.ledger.InMemoryWorldStateProxy
import io.iohk.ethereum.ledger.InMemoryWorldStateProxyStorage
import io.iohk.ethereum.utils.BlockchainConfig
Expand Down
7 changes: 6 additions & 1 deletion src/main/scala/io/iohk/ethereum/vm/EvmConfig.scala
@@ -1,10 +1,15 @@
package io.iohk.ethereum.vm

import akka.util.ByteString

import io.iohk.ethereum
import io.iohk.ethereum.domain.{AccessListItem, TransactionWithAccessList, UInt256}

import io.iohk.ethereum.domain.AccessListItem
import io.iohk.ethereum.domain.TransactionWithAccessList
import io.iohk.ethereum.domain.UInt256
import io.iohk.ethereum.utils.BlockchainConfig
import io.iohk.ethereum.vm

import EvmConfig._

// scalastyle:off magic.number
Expand Down
6 changes: 5 additions & 1 deletion src/main/scala/io/iohk/ethereum/vm/ProgramState.scala
@@ -1,7 +1,11 @@
package io.iohk.ethereum.vm

import akka.util.ByteString
import io.iohk.ethereum.domain.{AccessListItem, Address, TxLogEntry, UInt256}

import io.iohk.ethereum.domain.AccessListItem
import io.iohk.ethereum.domain.Address
import io.iohk.ethereum.domain.TxLogEntry
import io.iohk.ethereum.domain.UInt256

object ProgramState {
def apply[W <: WorldStateProxy[W, S], S <: Storage[S]](
Expand Down
5 changes: 4 additions & 1 deletion src/main/scala/io/iohk/ethereum/vm/VM.scala
Expand Up @@ -3,7 +3,10 @@ package io.iohk.ethereum.vm
import akka.util.ByteString

import scala.annotation.tailrec
import io.iohk.ethereum.domain.{AccessListItem, Address, UInt256}

import io.iohk.ethereum.domain.AccessListItem
import io.iohk.ethereum.domain.Address
import io.iohk.ethereum.domain.UInt256
import io.iohk.ethereum.utils.Logger

class VM[W <: WorldStateProxy[W, S], S <: Storage[S]] extends Logger {
Expand Down

0 comments on commit 4cbabc5

Please sign in to comment.