MCPcopy Create free account
hub / github.com/chain/txvm / createValue

Method createValue

protocol/txvm/entries.go:80–87  ·  view source on GitHub ↗
(amount int64, assetID, anchor []byte)

Source from the content-addressed store, hash-verified

78}
79
80func (vm *VM) createValue(amount int64, assetID, anchor []byte) *value {
81 vm.charge(128)
82 return &value{
83 amount: amount,
84 assetID: assetID,
85 anchor: anchor,
86 }
87}
88
89type contract struct {
90 typecode byte

Callers 4

opNonceFunction · 0.80
opIssueFunction · 0.80
opSplitFunction · 0.80
opMergeFunction · 0.80

Calls 1

chargeMethod · 0.95

Tested by

no test coverage detected