Skip to content

Commit

Permalink
ln/no-comp-when-0-create-profile-fee (#511)
Browse files Browse the repository at this point in the history
Co-authored-by: Lazy Nina <>
  • Loading branch information
lazynina authored Oct 2, 2023
1 parent 82ff3b4 commit 734c2b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ func (fes *APIServer) CompProfileCreation(profilePublicKey []byte, userMetadata
}
// Additional fee is set to the create profile fee when we are creating a profile
additionalFees := utxoView.GlobalParamsEntry.CreateProfileFeeNanos

if additionalFees == 0 {
return 0, nil, nil
}
existingMetamaskAirdropMetadata, err := fes.GetMetamaskAirdropMetadata(profilePublicKey)
if err != nil {
return 0, nil, fmt.Errorf("Error geting metamask airdrop metadata from global state: %v", err)
Expand Down

0 comments on commit 734c2b6

Please sign in to comment.