From 59bcf19220df4dcd9990d426e4eb6409c6671f01 Mon Sep 17 00:00:00 2001 From: Alex Coseru Date: Tue, 31 May 2022 08:00:46 +0300 Subject: [PATCH] use txId instead of txid Fixed provider in https://github.com/oceanprotocol/provider/pull/463 --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 67c821f..d170951 100644 --- a/src/index.js +++ b/src/index.js @@ -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') @@ -248,7 +248,7 @@ async function dowloadAsset( account, serviceId, i, - txid, + txId, params ) if (i === 0 && useAlgorithmNameInsteadOfIndex) filePath = folder + 'algorithm'