Hashpack / hashconnect

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

transaction did not have exactly one node ID set #214

Open lsxliron opened 2 months ago

lsxliron commented 2 months ago

Description

When trying to sign a transaction, I get the transaction did not have exactly one node ID set (similar to hashgraph/hedera-sdk-js#2168)

Expected behvior:

the call should returned a signed frozen transaction

Steps to Reproduce:

// TestNet

const client = new HashConnect(
      LedgerId.TESTNET,
      PROJECT_ID,
      appMetadata,
      true
)

// events are setup as described in the quickstart section
// https://www.npmjs.com/package/hashconnect#quick-start

const myAccount = AccountId.fromString('0.0.7483514')

const signer = await  client.getSigner(myAccount)
const t = await new TransferTransaction()
    .addHbarTransfer('0.0.7483514', -1)
    .addHbarTransfer('0.0.3719159', 1)
    .freezeWithSigner(signer)

const res = await t.signWithSigner(signer)

// ERROR: Uncaught transaction did not have exactly one node ID set