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

Property 'signTransaction' does not exist on type 'TransferTransaction' #193

Open
jaycoolslm opened this issue Feb 19, 2024 · 1 comment

Comments

@jaycoolslm
Copy link

Documentation currently says to sign and return a tx with signer you should

let signer = hashconnect.getSigner(accountId);

let trans = await new TransferTransaction()
    .addHbarTransfer(fromAccount, -1)
    .addHbarTransfer(toAccount, 1)
    .freezeWithSigner(signer);

let response = await trans.signTransaction(signer);

As of "@hashgraph/sdk": "^2.40.0" TransferTransaction API does not have a .signTransaction() method

@jaycoolslm
Copy link
Author

PR with correct method #194

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

1 participant