File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -66,23 +66,10 @@ func getActionByHash(args []string) string {
66
66
return err .Error ()
67
67
}
68
68
69
- request := & iotexapi.GetActionsRequest {
70
- Lookup : & iotexapi.GetActionsRequest_ByHash {
71
- ByHash : & iotexapi.GetActionByHashRequest {
72
- ActionHash : hash ,
73
- CheckPending : false ,
74
- },
75
- },
76
- }
77
- _ , err = cli .GetActions (ctx , request )
78
- if err != nil {
79
- return output + "\n #This action is pending\n "
80
- }
81
-
82
69
requestGetReceipt := & iotexapi.GetReceiptByActionRequest {ActionHash : hash }
83
70
responseReceipt , err := cli .GetReceiptByAction (ctx , requestGetReceipt )
84
71
if err != nil {
85
- return err . Error ()
72
+ return output + " \n #This action is pending"
86
73
}
87
74
return output + "\n #This action has been written on blockchain\n " +
88
75
printReceiptProto (responseReceipt .Receipt )
You can’t perform that action at this time.
0 commit comments