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

Method Type

types/transaction.go:254–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252}
253
254func (tx *Transaction) Type() uint64 {
255 return tx.data.Type
256}
257
258// CheckType checks the transaction's type.
259func (tx *Transaction) CheckType(t uint64) bool {

Callers 15

TestTxSetTypeFunction · 0.95
validateTxMethod · 0.80
ApplyTransactionFunction · 0.80
indirectFunction · 0.80
setFunction · 0.80
requireAssignableFunction · 0.80
mapAbiToStructFieldsFunction · 0.80
sliceTypeCheckFunction · 0.80
typeCheckFunction · 0.80
unpackTupleMethod · 0.80
parseTopicsFunction · 0.80
newRPCTransactionFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTxSetTypeFunction · 0.76