Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit e72580c

Browse files
committed
1.11.4 release
1 parent 3c539c1 commit e72580c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/state_processor.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta
150150
return receipt, err
151151
}
152152

153-
func applyTransactionWithResult(msg types.Message, config *params.ChainConfig, gp *GasPool, statedb *state.StateDB, blockNumber *big.Int, blockHash common.Hash, tx *types.Transaction, usedGas *uint64, evm *vm.EVM) (*types.Receipt, *ExecutionResult, error) {
153+
func applyTransactionWithResult(msg *Message, config *params.ChainConfig, gp *GasPool, statedb *state.StateDB, blockNumber *big.Int, blockHash common.Hash, tx *types.Transaction, usedGas *uint64, evm *vm.EVM) (*types.Receipt, *ExecutionResult, error) {
154154
// Create a new context to be used in the EVM environment.
155155
txContext := NewEVMTxContext(msg)
156156
evm.Reset(txContext, statedb)
@@ -182,7 +182,7 @@ func applyTransactionWithResult(msg types.Message, config *params.ChainConfig, g
182182
receipt.GasUsed = result.UsedGas
183183

184184
// If the transaction created a contract, store the creation address in the receipt.
185-
if msg.To() == nil {
185+
if msg.To == nil {
186186
receipt.ContractAddress = crypto.CreateAddress(evm.TxContext.Origin, tx.Nonce())
187187
}
188188

@@ -211,7 +211,7 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo
211211
}
212212

213213
func ApplyTransactionWithResult(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, *ExecutionResult, error) {
214-
msg, err := tx.AsMessage(types.MakeSigner(config, header.Number), header.BaseFee)
214+
msg, err := TransactionToMessage(tx, types.MakeSigner(config, header.Number), header.BaseFee)
215215
if err != nil {
216216
return nil, nil, err
217217
}

0 commit comments

Comments
 (0)