Hashpack / hashconnect

Hashconnect library, readme in progress
BSD Zero Clause License
45 stars 38 forks source link

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

Open jaycoolslm opened 6 months ago

jaycoolslm commented 6 months ago

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 commented 6 months ago

PR with correct method https://github.com/Hashpack/hashconnect/pull/194