(txData string)
| 445 | } |
| 446 | |
| 447 | func PrepareSendRawTransaction(txData string) (*rpccommon.PreExecuteResult, error) { |
| 448 | data, ontErr := sendRpcRequest("sendrawtransaction", []interface{}{txData, 1}) |
| 449 | if ontErr != nil { |
| 450 | return nil, ontErr.Error |
| 451 | } |
| 452 | preResult := &rpccommon.PreExecuteResult{} |
| 453 | err := json.Unmarshal(data, &preResult) |
| 454 | if err != nil { |
| 455 | return nil, fmt.Errorf("json.Unmarshal PreExecResult:%s error:%s", data, err) |
| 456 | } |
| 457 | return preResult, nil |
| 458 | } |
| 459 | |
| 460 | //GetSmartContractEvent return smart contract event execute by invoke transaction by hex string code |
| 461 | func GetSmartContractEvent(txHash string) (*rpccommon.ExecuteNotify, error) { |
no test coverage detected