Skip to content

Commit 36c3bb2

Browse files
committed
fix: deploy nft filter
1 parent 1351872 commit 36c3bb2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/cli",
3-
"version": "2.2.2",
3+
"version": "2.2.3",
44
"main": "index.js",
55
"repository": "git@github.com:nevermined-io/cli.git",
66
"author": "Nevermined",

src/commands/nfts/deployNft.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const deployNft = async (
2828
logger.info(JSON.stringify(operators))
2929
// INFO: We allow the Nevermined Node to fulfill the transfer condition in behalf of the user
3030
// Typically this only needs to happen once per NFT contract
31-
operators.forEach((_addr: string) => {
31+
operators
32+
.filter((_addr: string) => _addr)
33+
.forEach((_addr: string) => {
3234
_addr = _addr.replace('\\', '')
3335
logger.debug(`Checking address: ${_addr}`)
3436
if (isValidAddress(_addr)) addressesToApprove.push(_addr)

0 commit comments

Comments
 (0)