Begin of moving objects to types package
* Block(s) * Transaction(s)
This commit is contained in:
@ -3,17 +3,18 @@ package chain
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum/chain/types"
|
||||
"github.com/ethereum/go-ethereum/state"
|
||||
"github.com/ethereum/go-ethereum/vm"
|
||||
)
|
||||
|
||||
type VMEnv struct {
|
||||
state *state.State
|
||||
block *Block
|
||||
tx *Transaction
|
||||
block *types.Block
|
||||
tx *types.Transaction
|
||||
}
|
||||
|
||||
func NewEnv(state *state.State, tx *Transaction, block *Block) *VMEnv {
|
||||
func NewEnv(state *state.State, tx *types.Transaction, block *types.Block) *VMEnv {
|
||||
return &VMEnv{
|
||||
state: state,
|
||||
block: block,
|
||||
|
Reference in New Issue
Block a user