MCPcopy Create free account
hub / github.com/DNAProject/DNA / NewInvokeTransaction

Function NewInvokeTransaction

core/utils/transaction_builder.go:55–65  ·  view source on GitHub ↗

NewInvokeTransaction returns an invoke Transaction

(code []byte)

Source from the content-addressed store, hash-verified

53
54// NewInvokeTransaction returns an invoke Transaction
55func NewInvokeTransaction(code []byte) *types.MutableTransaction {
56 //TODO: check arguments
57 invokeCodePayload := &payload.InvokeCode{
58 Code: code,
59 }
60
61 return &types.MutableTransaction{
62 TxType: types.InvokeNeo,
63 Payload: invokeCodePayload,
64 }
65}
66
67func BuildNativeTransaction(addr common.Address, initMethod string, args []byte) *types.MutableTransaction {
68 bf := new(bytes.Buffer)

Callers 1

BuildNativeTransactionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected