Revert and move the previous change

This commit is contained in:
Serkan Reis 2023-06-20 22:50:16 +03:00
parent 1f6fa1e34b
commit dc635ff3a2
2 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,11 @@ export const MintingDetails = ({ onChange, uploadMethod, minimumMintPrice }: Min
useEffect(() => {
const data: MintingDetailsDataProps = {
unitPrice: unitPriceState.value ? Number(unitPriceState.value).toString() : unitPriceState.value === 0 ? '0' : '',
unitPrice: unitPriceState.value
? (Number(unitPriceState.value) * 1_000_000).toString()
: unitPriceState.value === 0
? '0'
: '',
perAddressLimit: perAddressLimitState.value,
startTime: timestamp ? (timestamp.getTime() * 1_000_000).toString() : '',
endTime: endTimestamp ? (endTimestamp.getTime() * 1_000_000).toString() : '',

View File

@ -500,7 +500,7 @@ export const OpenEditionMinterCreator = ({
start_time: mintingDetails?.startTime,
end_time: mintingDetails?.endTime,
mint_price: {
amount: (Number(mintingDetails?.unitPrice) * 1000000).toString(),
amount: Number(mintingDetails?.unitPrice).toString(),
denom: 'ustars',
},
per_address_limit: mintingDetails?.perAddressLimit,