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

HashConnectSigner not compatible with hethers Signer #108

Closed
dragoonzx opened this issue May 13, 2022 · 3 comments
Closed

HashConnectSigner not compatible with hethers Signer #108

dragoonzx opened this issue May 13, 2022 · 3 comments

Comments

@dragoonzx
Copy link

Error: invalid signer or provider

wen using with hethers.Contract

@moshenskyDV
Copy link

Hi, any update of this?
Still issue for me as well.

Let me add some details:
When we are initialising contract we need to pass signerOrProvider as third parameter.
new hethers.Contract(address, ABI, signerOrProvider)

Inside this function call there is check on property _isSigner, which HashConnectSigner does not have. Even if we add this prop manually, contracts HashConnectSigner from hashpack and Signer from hethers still really different.
Please guys check it out.

@dragoonzx have you found any solution?

@dragoonzx
Copy link
Author

@dragoonzx have you found any solution?

Hi, I dont remember exactly. I think its better to use @hashgraph/sdk, thats what I did. Maybe you can find answers in their source code, I dont know whether its open-source or not

@moshenskyDV
Copy link

For those one who faced this issue:
Currently you won't be able to use Hethers with HashPack properly.

If you want to sign transaction for hashpack - you need to use Hashgraph SDK.
Example of transaction signed by hashpack signer: https://github.com/Hashpack/hashconnect#usage-1

@teacoat teacoat closed this as completed Jan 10, 2024
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

3 participants