BuildNeoVMInvokeCode build NeoVM Invoke code for params
(smartContractAddress common.Address, params []interface{})
| 95 | |
| 96 | //BuildNeoVMInvokeCode build NeoVM Invoke code for params |
| 97 | func BuildNeoVMInvokeCode(smartContractAddress common.Address, params []interface{}) ([]byte, error) { |
| 98 | builder := vm.NewParamsBuilder(new(bytes.Buffer)) |
| 99 | err := BuildNeoVMParam(builder, params) |
| 100 | if err != nil { |
| 101 | return nil, err |
| 102 | } |
| 103 | args := append(builder.ToArray(), 0x67) |
| 104 | args = append(args, smartContractAddress[:]...) |
| 105 | return args, nil |
| 106 | } |
| 107 | |
| 108 | //buildNeoVMParamInter build neovm invoke param code |
| 109 | func BuildNeoVMParam(builder *vm.ParamsBuilder, smartContractParams []interface{}) error { |
nothing calls this directly
no test coverage detected