Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 42645f5

Browse files
committed
Actually use the new values
1 parent e3740a1 commit 42645f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/moderation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (n *OpenBazaarNode) GetModeratorFee(transactionTotal *big.Int, txCurrencyCo
236236
bigAmount = profile.ModeratorInfo.Fee.FixedFee.BigAmount
237237
}
238238

239-
modFeeValue, err := repo.NewCurrencyValueFromProtobuf(profile.ModeratorInfo.Fee.FixedFee.BigAmount, profile.ModeratorInfo.Fee.FixedFee.AmountCurrency)
239+
modFeeValue, err := repo.NewCurrencyValueFromProtobuf(bigAmount, curDef)
240240
if err != nil {
241241
return big.NewInt(0), fmt.Errorf("parse moderator fee currency: %s", err)
242242
}

0 commit comments

Comments
 (0)