ApplyMessage computes the new state by applying the given message against the old state within the environment. ApplyMessage returns the bytes returned by any EVM execution (if it took place), the gas used (which includes gas refunds) and an error if it failed. An error always indicates a core erro
(evm *vm.EVM, msg Message, gp *GasPool)
| 131 | // indicates a core error meaning that the message would always fail for that particular |
| 132 | // state and would never be accepted within a block. |
| 133 | func ApplyMessage(evm *vm.EVM, msg Message, gp *GasPool) ([]byte, uint64, bool, error) { |
| 134 | return NewStateTransition(evm, msg, gp).TransitionDb() |
| 135 | } |
| 136 | |
| 137 | // to returns the recipient of the message. |
| 138 | func (st *StateTransition) to() common.Address { |
no test coverage detected