Skip to content

Commit

Permalink
manually revert an unwanted diff
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 committed Jun 23, 2022
1 parent 2af5630 commit e276478
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,18 @@ func SysCallContract(contract common.Address, data []byte, chainConfig params.Ch
vmConfig := vm.Config{NoReceipts: true}
// Create a new context to be used in the EVM environment
isBor := chainConfig.Bor != nil
var txContext vm.TxContext
var author *common.Address
if isBor {
author = &header.Coinbase
txContext = vm.TxContext{}
} else {
author = &state.SystemAddress
txContext = NewEVMTxContext(msg)
}
blockContext := NewEVMBlockContext(header, GetHashFn(header, nil), engine, author, nil)
evm := vm.NewEVM(blockContext, NewEVMTxContext(msg), ibs, &chainConfig, vmConfig)
if chainConfig.Bor != nil {
evm := vm.NewEVM(blockContext, txContext, ibs, &chainConfig, vmConfig)
if isBor {
ret, _, err := evm.Call(
vm.AccountRef(msg.From()),
*msg.To(),
Expand Down

0 comments on commit e276478

Please sign in to comment.