Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/bcd/literal.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func IsContract(str string) bool {
return contractRegex.MatchString(str)
}

// FindContract -
func FindContract(str string) string {
return contractRegex.FindString(str)
}

// IsBakerHash -
func IsBakerHash(str string) bool {
return bakerHashRegex.MatchString(str)
Expand Down
5 changes: 4 additions & 1 deletion internal/parsers/operations/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ func (p Transaction) parseContractParams(ctx context.Context, data noderpc.Opera
}
if tx.Errors[i].Is(consts.TezlinkError) &&
strings.Contains(tx.Errors[i].ErrorMessage, consts.TezlinkContractDoesNotExistMarker) {
return nil
if bcd.FindContract(tx.Errors[i].ErrorMessage) == tx.Destination.Address {
store.MarkAccountGhost(tx.Destination.Address)
}
return p.getEntrypoint(tx)
}
}

Expand Down
Loading