chore: log incorrect amountInWeis (#5005)

This commit is contained in:
Igor Sirotin 2024-04-02 14:54:24 +01:00 committed by GitHub
parent ef0e17e0f5
commit 3bd00cb416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ func (p *DefaultPermissionChecker) CheckPermissions(permissions []*CommunityToke
requiredAmount, success := new(big.Int).SetString(tokenRequirement.AmountInWei, 10)
if !success {
return nil, fmt.Errorf("amountInWeis value is incorrect")
return nil, fmt.Errorf("amountInWeis value is incorrect: %s", tokenRequirement.AmountInWei)
}
if accumulatedBalance.Cmp(requiredAmount) != -1 {