aleph-im / aleph-sdk-ts

A TypeScript SDK to interact with the Aleph I.M. network.
https://aleph-im.github.io/aleph-sdk-ts/
MIT License
11 stars 9 forks source link

AuthenticatedAlephHttpClient.createStore returning {status: xxx, hash: xxxx} #168

Closed Saverio976 closed 6 months ago

Saverio976 commented 6 months ago

Describe the bug AuthenticatedAlephHttpClient.createStore returns only an object containing the keys status and hash

But from what the types says, it must be a StoreMessage.

To Reproduce Create a STORE message

Expected behavior Have access to the value expected by the return type of the function

Environment Please describe the environment in which the bug occured. OS, Runtime, Browser (if applicable), Bundler (if applicable). OS: Linux (debian 12) Runtime: pulumi/typescript (I don't know the runtime of the pulumi typescript runner) Browser: no Bundler: no

Additional context Best regards

RezaRahemtola commented 6 months ago

For the context, @Saverio976 is working on a projet at PoC to create a Pulumi provider for Aleph :smile: https://github.com/PoCInnovation/alumi

MHHukiewitz commented 6 months ago

Thanks for the report! Will look into it.

MHHukiewitz commented 6 months ago

Will be fixed in the next release

MHHukiewitz commented 6 months ago

Version 1.0.2 of https://www.npmjs.com/package/@aleph-sdk/message fixes this

Saverio976 commented 6 months ago

Thanks