(code []byte)
| 699 | } |
| 700 | |
| 701 | func PrepareInvokeCodeNeoVMContract(code []byte) (*rpccommon.PreExecuteResult, error) { |
| 702 | mutable, err := httpcom.NewSmartContractTransaction(0, 0, code) |
| 703 | if err != nil { |
| 704 | return nil, err |
| 705 | } |
| 706 | tx, err := mutable.IntoImmutable() |
| 707 | if err != nil { |
| 708 | return nil, err |
| 709 | } |
| 710 | txData := hex.EncodeToString(common.SerializeToBytes(tx)) |
| 711 | return PrepareSendRawTransaction(txData) |
| 712 | } |
| 713 | |
| 714 | //prepare invoke wasm |
| 715 | func PrepareInvokeWasmVMContract(contractAddress common.Address, params []interface{}) (*rpccommon.PreExecuteResult, error) { |
no test coverage detected