Skip to content

Commit

Permalink
Change common.StringTo? to common.HexTo? functions, as per ethereum/g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriep committed Apr 17, 2018
1 parent 2134467 commit c18abaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/vm.evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit c18abaa

Please sign in to comment.