Skip to content
Prev Previous commit
Next Next commit
Update var name
  • Loading branch information
kien-ngo committed Oct 20, 2023
commit 838d2d60516e4f3d3a0e20f8c4424a229a465012
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,15 @@ export class Erc20SignatureMintable implements DetectableFeature {
private async mapPayloadToContractStruct(
mintRequest: PayloadWithUri20,
): Promise<ITokenERC20.MintRequestStructOutput> {
const [normalizedPrice, _decimals] = await Promise.all([
const [normalizedPrice, decimals] = await Promise.all([
normalizePriceValue(
this.contractWrapper.getProvider(),
mintRequest.price,
mintRequest.currencyAddress,
),
this.contractWrapper.read("decimals", []),
]);
const amountWithDecimals = utils.parseUnits(
mintRequest.quantity,
_decimals,
);
const amountWithDecimals = utils.parseUnits(mintRequest.quantity, decimals);
return {
to: mintRequest.to,
primarySaleRecipient: mintRequest.primarySaleRecipient,
Expand Down