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:
parent
d51e3f3dbf
commit
1336773272
@ -100,7 +100,7 @@ export class DDO {
|
||||
this.id,
|
||||
]
|
||||
|
||||
return web3.utils.sha3(values.join(""))
|
||||
return web3.utils.sha3(values.join("")).substr(0, 32)
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -155,7 +155,7 @@ export default class OceanAssets {
|
||||
|
||||
await didRegistry.registerAttribute(
|
||||
did.getId(),
|
||||
ddo.getChecksum().substr(0, 32), // TODO: checksum
|
||||
ddo.getChecksum(),
|
||||
serviceEndpoint,
|
||||
publisher.getId())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user