1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

moved checksum length control

This commit is contained in:
Pedro Gutiérrez 2019-02-06 12:54:06 +01:00 committed by Pedro Gutiérrez
parent d51e3f3dbf
commit 1336773272
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ export class DDO {
this.id, this.id,
] ]
return web3.utils.sha3(values.join("")) return web3.utils.sha3(values.join("")).substr(0, 32)
} }
/** /**

View File

@ -155,7 +155,7 @@ export default class OceanAssets {
await didRegistry.registerAttribute( await didRegistry.registerAttribute(
did.getId(), did.getId(),
ddo.getChecksum().substr(0, 32), // TODO: checksum ddo.getChecksum(),
serviceEndpoint, serviceEndpoint,
publisher.getId()) publisher.getId())