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

transaction did not have exactly one node ID set #214

Open
lsxliron opened this issue Jun 26, 2024 · 0 comments
Open

transaction did not have exactly one node ID set #214

lsxliron opened this issue Jun 26, 2024 · 0 comments

Comments

@lsxliron
Copy link

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
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