to returns the recipient of the message.
()
| 136 | |
| 137 | // to returns the recipient of the message. |
| 138 | func (st *StateTransition) to() common.Address { |
| 139 | if st.msg == nil || st.msg.To() == nil /* contract creation */ { |
| 140 | return common.Address{} |
| 141 | } |
| 142 | return *st.msg.To() |
| 143 | } |
| 144 | |
| 145 | func (st *StateTransition) useGas(amount uint64) error { |
| 146 | if st.gas < amount { |