Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ypeScript Error: Property 'getSigner' Does Not Exist on Type '() => Promise<PlatformDefinition<"Cosmwasm">>' #743

Open
ssachi777 opened this issue Nov 22, 2024 · 1 comment

Comments

@ssachi777
Copy link

ssachi777 commented Nov 22, 2024

A TypeScript error has been encountered during the development of a project utilizing the Wormhole SDK. The specific error message is:

Property 'getSigner' does not exist on type '() => Promise<PlatformDefinition<"Cosmwasm">>'
Context: This error occurred while attempting to use the getSigner method on the cosmwasm object within the getSigner function. The function aims to retrieve a signer for various blockchain platforms (Solana, Cosmwasm, Evm, Algorand, Sui) based on the chain context provided.facing this error for every tokens i tried.

@erenaspire7
Copy link

I think it needs to be initialized prior to calling getSigner

import cosmwasm from "@wormhole-foundation/sdk/cosmwasm";

wrapper = await cosmwasm();

signer = await wrapper.getSigner(
      await chain.getRpc(),
      getEnv("COSMOS_MNEMONIC")
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants