Skip to content

Commit

Permalink
update record behavior to match receipt hedera updates
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Jan 25, 2020
1 parent 61a586e commit 8de0706
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,12 @@ func isResponseUnknown(resp *proto.Response) bool {

case *proto.Response_TransactionGetRecord:
body := resp.GetTransactionGetRecord()
return isStatusUnknown(body.Header.NodeTransactionPrecheckCode) ||
isStatusUnknown(body.TransactionRecord.Receipt.Status)

if body.TransactionRecord == nil {
return false
}

return isStatusUnknown(body.TransactionRecord.Receipt.Status)

default:
}
Expand Down
4 changes: 3 additions & 1 deletion transaction_record_query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package hedera

import "github.com/hashgraph/hedera-sdk-go/proto"
import (
"github.com/hashgraph/hedera-sdk-go/proto"
)

type TransactionRecordQuery struct {
QueryBuilder
Expand Down

0 comments on commit 8de0706

Please sign in to comment.