feat: Handle collectible mint (#3852)

This commit is contained in:
Cuteivist 2023-08-04 12:47:22 +02:00 committed by GitHub
parent bbb8e99492
commit 06c4eb5df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -711,6 +711,9 @@ func getActivityEntries(ctx context.Context, deps FilterDependencies, addresses
}
return SendAT, fromAddress
} else if trType.Byte == toTrType {
if fromAddress == ZeroAddress && transferType != nil && *transferType == TransferTypeErc721 {
return MintAT, toAddress
}
return ReceiveAT, toAddress
}
}

View File

@ -26,6 +26,7 @@ const (
SwapAT
BridgeAT
ContractDeploymentAT
MintAT
)
func allActivityTypesFilter() []Type {