Skip to content

Commit

Permalink
use txId instead of txid
Browse files Browse the repository at this point in the history
Fixed provider in oceanprotocol/provider#463
  • Loading branch information
alexcos20 authored May 31, 2022
1 parent f606bc9 commit 59bcf19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ async function dowloadAsset(
console.error('Cannot connect to remote providers without a private key')
return false
}
const { txid } = what.remote
const { txId } = what.remote
const { serviceId } = what.remote
if (txid && ddo) {
if (txId && ddo) {
const service = ddo.services.find(s => s.id === serviceId)
if (!service) {
console.error('Cannot find that serviceId in the DDO')
Expand All @@ -248,7 +248,7 @@ async function dowloadAsset(
account,
serviceId,
i,
txid,
txId,
params
)
if (i === 0 && useAlgorithmNameInsteadOfIndex) filePath = folder + 'algorithm'
Expand Down

0 comments on commit 59bcf19

Please sign in to comment.