Skip to content

Commit

Permalink
Fix: transfers errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 1, 2021
1 parent 0ab8ee6 commit 1c87782
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/parsers/transfer/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ func (p *Parser) transferPostprocessing(transfers []*transfer.Transfer, operatio
func (p *Parser) makeFA12Transfers(operation operation.Operation) ([]*transfer.Transfer, error) {
node, err := getNode(operation)
if err != nil {
return nil, err
if operation.Status == consts.Applied {
return nil, err
}
return nil, nil
}
if node == nil {
return nil, nil
Expand All @@ -228,7 +231,10 @@ func (p *Parser) makeFA12Transfers(operation operation.Operation) ([]*transfer.T
func (p *Parser) makeFA2Transfers(operation operation.Operation) ([]*transfer.Transfer, error) {
node, err := getNode(operation)
if err != nil {
return nil, err
if operation.Status == consts.Applied {
return nil, err
}
return nil, nil
}
if node == nil {
return nil, nil
Expand Down

0 comments on commit 1c87782

Please sign in to comment.