Skip to content

transaction did not have exactly one node ID set #214

@lsxliron

Description

@lsxliron

Description

When trying to sign a transaction, I get the transaction did not have exactly one node ID set (similar to hiero-ledger/hiero-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions