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

Method CheckType

types/transaction.go:259–261  ·  view source on GitHub ↗

CheckType checks the transaction's type.

(t uint64)

Source from the content-addressed store, hash-verified

257
258// CheckType checks the transaction's type.
259func (tx *Transaction) CheckType(t uint64) bool {
260 return tx.data.Type == t
261}
262
263// SetType sets the type to the transaction.
264func (tx *Transaction) SetType(t uint64) {

Callers 3

TestTxCheckTypeFunction · 0.95
IsPrivateMethod · 0.95
IsBasicMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestTxCheckTypeFunction · 0.76