@@ -155,7 +155,7 @@ export class Commands {
155155
156156 const updateAssetTx = await updateAssetMetadata (
157157 this . signer ,
158- asset as any ,
158+ asset ,
159159 this . oceanNodeUrl ,
160160 this . aquarius ,
161161 encryptDDO
@@ -354,7 +354,7 @@ export class Commands {
354354 ddos [ dataDdo ] ,
355355 ddos [ dataDdo ] . services [ 0 ] . id ,
356356 algo ,
357- algoDdo as any
357+ algoDdo
358358 ) ;
359359 if ( ! canStartCompute ) {
360360 console . error (
@@ -396,7 +396,7 @@ export class Commands {
396396 console . log ( "Ordering algorithm: " , args [ 2 ] ) ;
397397 algo . transferTxId = await handleComputeOrder (
398398 providerInitializeComputeJob . algorithm ,
399- algoDdo as any ,
399+ algoDdo ,
400400 this . signer ,
401401 computeEnv . consumerAddress ,
402402 0 ,
@@ -601,7 +601,7 @@ export class Commands {
601601 ddos [ dataDdo ] ,
602602 ddos [ dataDdo ] . services [ 0 ] . id ,
603603 algo ,
604- algoDdo as any
604+ algoDdo
605605 ) ;
606606 if ( ! canStartCompute ) {
607607 console . error (
@@ -751,8 +751,7 @@ export class Commands {
751751 return ;
752752 }
753753
754- // @ts -ignore
755- if ( asset . nft . owner !== ( await this . signer . getAddress ( ) ) ) {
754+ if ( asset . indexedMetadata . nft . owner !== ( await this . signer . getAddress ( ) ) ) {
756755 console . error (
757756 "You are not the owner of this asset, and there for you cannot update it."
758757 ) ;
@@ -806,7 +805,7 @@ export class Commands {
806805 try {
807806 const txid = await updateAssetMetadata (
808807 this . signer ,
809- asset as any ,
808+ asset ,
810809 this . oceanNodeUrl ,
811810 this . aquarius ,
812811 encryptDDO
@@ -832,8 +831,7 @@ export class Commands {
832831 ) ;
833832 return ;
834833 }
835- // @ts -ignore
836- if ( asset . nft . owner !== ( await this . signer . getAddress ( ) ) ) {
834+ if ( asset . indexedMetadata . nft . owner !== ( await this . signer . getAddress ( ) ) ) {
837835 console . error (
838836 "You are not the owner of this asset, and there for you cannot update it."
839837 ) ;
@@ -876,7 +874,7 @@ export class Commands {
876874
877875 const txid = await updateAssetMetadata (
878876 this . signer ,
879- asset as any ,
877+ asset ,
880878 this . oceanNodeUrl ,
881879 this . aquarius ,
882880 encryptDDO
0 commit comments