Skip to content

Commit

Permalink
Merge branches 'feat/unable-to-activate-pending-accounts-when-bic-neg…
Browse files Browse the repository at this point in the history
…ative' and 'develop-iota2.0' of github.com:iotaledger/firefly into feat/unable-to-activate-pending-accounts-when-bic-negative
  • Loading branch information
cpl121 committed Mar 21, 2024
2 parents fae4cd7 + 764039e commit 6c1a104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export function getNetworkIdFromNetworkName(networkName: string): NetworkId {
case 'testnet-1':
case 'testnet-2':
case 'docker':
case 'docker-1709894432':
case 'docker-1711022286':
return NetworkId.Testnet
default:
Expand Down
11 changes: 2 additions & 9 deletions packages/shared/lib/core/wallet/actions/mintNft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
IIrc27Metadata,
} from '@core/nfts'
import { Converter } from '@core/utils'
import { Bech32Address, MetadataFeature, MintNftParams, OutputType } from '@iota/sdk/out/types'
import { MetadataFeature, MintNftParams, OutputType } from '@iota/sdk/out/types'
import { ActivityAction } from '../enums'
import {
addActivityToWalletActivitiesInAllWalletActivities,
Expand All @@ -19,20 +19,13 @@ import { NftActivity } from '../types'
import { getDefaultTransactionOptions, preprocessOutgoingTransaction } from '../utils'
import { generateSingleNftActivity } from '../utils/generateActivity/generateSingleNftActivity'

// TODO: Update this temporary interface when fixed in the SDK, linked issue https://github.com/iotaledger/firefly/issues/8134
interface MintNftParamsTemp {
issuer: Bech32Address
address: Bech32Address
immutableMetadata: MetadataFeature
}

export async function mintNft(metadata: IIrc27Metadata, quantity: number): Promise<void> {
try {
const wallet = getSelectedWallet()
updateSelectedWallet({ isTransferring: true })

if (!wallet) return
const mintNftParams: MintNftParamsTemp = {
const mintNftParams: MintNftParams = {
issuer: wallet.depositAddress,
address: wallet.depositAddress,
immutableMetadata: new MetadataFeature({
Expand Down

0 comments on commit 6c1a104

Please sign in to comment.