NewInvokeTransaction returns an invoke Transaction
(code []byte)
| 53 | |
| 54 | // NewInvokeTransaction returns an invoke Transaction |
| 55 | func 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 | |
| 67 | func BuildNativeTransaction(addr common.Address, initMethod string, args []byte) *types.MutableTransaction { |
| 68 | bf := new(bytes.Buffer) |
no outgoing calls
no test coverage detected