Skip to content

Commit

Permalink
Started fixing mint.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 9, 2023
1 parent d5f95b9 commit 1b4c325
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,7 @@
"token_one": "token",
"token_other": "tokens",
"tokens": "tokens",
"tokensWillBeSentToTreasury_dao": "These tokens will be sent to the DAO's treasury.",
"tokensWillBeSentToTreasury_wallet": "These tokens will be sent to your wallet.",
"tokensWillBeSentToTreasury": "These tokens will be sent to the DAO's treasury.",
"tokensWillBeSplitAmongContributors": "{{tokens}} will be split among contributors.",
"tos": "DAO DAO TOOLING IS PROVIDED \"AS IS\", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in creating the DAO DAO UI or smart contracts will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of DAO DAO tooling, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.",
"totalHoldings": "Total holdings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
validateRequired,
} from '@dao-dao/utils'

import { useActionOptions } from '../../../../../actions'

export interface MintOptions {
govToken: GenericToken
}
Expand All @@ -22,7 +20,6 @@ export const MintComponent: ActionComponent<MintOptions> = ({
options: { govToken },
}) => {
const { t } = useTranslation()
const { context } = useActionOptions()
const { register, watch, setValue } = useFormContext()

return (
Expand All @@ -49,9 +46,7 @@ export const MintComponent: ActionComponent<MintOptions> = ({
)}

<p className="caption-text italic">
{t('info.tokensWillBeSentToTreasury', {
type: context.type,
})}
{t('info.tokensWillBeSentToTreasury')}
</p>
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ export const MintComponent: ActionComponent<MintOptions> = ({
)}

<p className="caption-text italic">
{t('info.tokensWillBeSentToTreasury', {
type: context.type,
})}
{t('info.tokensWillBeSentToTreasury')}
</p>
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const useTransformToCosmos: UseTransformToCosmos<MintData> = () => {
const { governanceTokenAddress, governanceTokenInfo } =
useGovernanceTokenInfo()

// TODO: use cw-tokenfactory-issuer to set_minter and then mint
return useCallback(
(data: MintData) => {
return makeStargateMessage({
Expand Down

0 comments on commit 1b4c325

Please sign in to comment.