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

Method String

protocol/txvm/entries.go:145–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145func (x *contract) String() string {
146 prefix := "contract{"
147 if x.typecode == WrappedContractCode {
148 prefix = "wrappedcontract{"
149 }
150 return prefix + fmt.Sprintf("%x", x.seed) + ", " + fmt.Sprintf("%x", x.program) + ", " + x.stack.String() + "}"
151}
152
153func (vm *VM) createContract(prog []byte) *contract {
154 vm.charge(128)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected