diff --git a/vm/vm.evm.go b/vm/vm.evm.go index af6a579760..1ef060cd7e 100644 --- a/vm/vm.evm.go +++ b/vm/vm.evm.go @@ -79,7 +79,7 @@ func NewEnv(db vm.StateDB, origin common.Address) *vm.EVM { DAOForkSupport: true, // Whether the nodes supports or opposes the DAO hard-fork // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150Block: nil, // EIP150 HF block (nil = no fork) - EIP150Hash: common.StringToHash("myHash"), // EIP150 HF hash (needed for header only clients as only gas pricing changed) + EIP150Hash: common.BytesToHash([]byte("myHash")), // EIP150 HF hash (needed for header only clients as only gas pricing changed) EIP155Block: big.NewInt(0), // EIP155 HF block EIP158Block: big.NewInt(0), // EIP158 HF block ByzantiumBlock: nil, // Byzantium switch block (nil = no fork, 0 = already on byzantium) @@ -118,7 +118,7 @@ func NewEnv(db vm.StateDB, origin common.Address) *vm.EVM { }, Origin: origin, - Coinbase: common.StringToAddress("myCoinBase"), + Coinbase: common.BytesToAddress([]byte("myCoinBase")), BlockNumber: new(big.Int), Time: big.NewInt(time.Now().Unix()), Difficulty: new(big.Int),