From 1c87782ed72fe9cc4cca3b2ff94a54c31526fe25 Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 1 Jun 2021 16:06:40 +0300 Subject: [PATCH] Fix: transfers errors --- internal/parsers/transfer/transfer.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/parsers/transfer/transfer.go b/internal/parsers/transfer/transfer.go index 896baf9ed..6da3ca2fd 100644 --- a/internal/parsers/transfer/transfer.go +++ b/internal/parsers/transfer/transfer.go @@ -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 @@ -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