mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Send the DID registry transaction before send the DDO to Aquarius. #200
This commit is contained in:
parent
c116cde4ca
commit
4438206914
@ -134,7 +134,6 @@ export class OceanAssets extends Instantiable {
|
||||
ddo.addChecksum()
|
||||
await ddo.addProof(this.ocean, publisher.getId(), publisher.getPassword())
|
||||
|
||||
const storedDdo = await this.ocean.aquarius.storeDDO(ddo)
|
||||
await didRegistry.registerAttribute(
|
||||
did.getId(),
|
||||
ddo.getChecksum(),
|
||||
@ -142,6 +141,7 @@ export class OceanAssets extends Instantiable {
|
||||
serviceEndpoint,
|
||||
publisher.getId(),
|
||||
)
|
||||
const storedDdo = await this.ocean.aquarius.storeDDO(ddo)
|
||||
|
||||
return storedDdo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user