MCPcopy Create free account
hub / github.com/CPChain/chain / to

Method to

core/state_transition.go:138–143  ·  view source on GitHub ↗

to returns the recipient of the message.

()

Source from the content-addressed store, hash-verified

136
137// to returns the recipient of the message.
138func (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
145func (st *StateTransition) useGas(amount uint64) error {
146 if st.gas < amount {

Callers 1

TransitionDbMethod · 0.95

Calls 1

ToMethod · 0.65

Tested by

no test coverage detected