@@ -150,7 +150,7 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta
150
150
return receipt , err
151
151
}
152
152
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 ) {
154
154
// Create a new context to be used in the EVM environment.
155
155
txContext := NewEVMTxContext (msg )
156
156
evm .Reset (txContext , statedb )
@@ -182,7 +182,7 @@ func applyTransactionWithResult(msg types.Message, config *params.ChainConfig, g
182
182
receipt .GasUsed = result .UsedGas
183
183
184
184
// If the transaction created a contract, store the creation address in the receipt.
185
- if msg .To () == nil {
185
+ if msg .To == nil {
186
186
receipt .ContractAddress = crypto .CreateAddress (evm .TxContext .Origin , tx .Nonce ())
187
187
}
188
188
@@ -211,7 +211,7 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo
211
211
}
212
212
213
213
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 )
215
215
if err != nil {
216
216
return nil , nil , err
217
217
}
0 commit comments