OriginTrail / dkg-client

Javascript library for interaction with the OriginTrail Decentralized Knowledge Graph
10 stars 6 forks source link

Update assets-client.js #10

Closed ulysseseng closed 2 years ago

ulysseseng commented 2 years ago

We need to rename it to provision because docs in READMEN.MD uses "provision" method and not "create" method and will throw errors if someone use these examples

kotlarmilos commented 2 years ago

Thanks for the heads up! Create endpoint (dkg.assets.create) is used for creating new assets while publish is for assertions (dkg.publish). Could you make changes in the README.md to use .create instead of .provision?