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

Method SetType

types/transaction.go:264–266  ·  view source on GitHub ↗

SetType sets the type to the transaction.

(t uint64)

Source from the content-addressed store, hash-verified

262
263// SetType sets the type to the transaction.
264func (tx *Transaction) SetType(t uint64) {
265 tx.data.Type = t
266}
267
268// IsPrivate checks if the tx is private.
269func (tx *Transaction) IsPrivate() bool {

Callers 5

TestTxIsPrivateFunction · 0.95
TestTxCheckTypeFunction · 0.95
TestTxSetTypeFunction · 0.95
SetPrivateMethod · 0.95
toTransactionMethod · 0.95

Calls

no outgoing calls

Tested by 3

TestTxIsPrivateFunction · 0.76
TestTxCheckTypeFunction · 0.76
TestTxSetTypeFunction · 0.76