-
Notifications
You must be signed in to change notification settings - Fork 131
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
Child transaction creation not working with the JS SDK #1186
Comments
very urgent to be fixed, let us know if we can be of any help. |
@danielakhterov @keirabee This issue needs to be reopened. This child/parent txs are still not working... A user (@HbarSuite ) and I ran into the following error when trying two different things: TRANSACTION_ID_FIELD_NOT_ALLOWED
Here's some JS sample code to help with your testing: const txId1 = TransactionId.generate(new AccountId(operatorId)).setNonce(0);
|
@ed-marquez I could be mistaking, but I don't think users are allowed to submit child transactions. The purpose of child transactions is strictly for services to create N transactions from one user transaction depending on what that submitted transaction is attempting to do. |
we are a service, that's why we need it, it shall be available on the hashgraph JS-SDK. |
Description
Documentation on parent/child transactions shows the method
.setNonce()
forTransactionId
https://docs.hedera.com/guides/docs/sdks/transactions/transaction-id
That method is not working as expected in the JS SDK. A user reported the issue and I'm also running into the same issue.
Here's the error"
TypeError: Cannot assign to read only property 'nonce' of object '[object Object]'
Steps to reproduce
The following code is a starting point for debugging:
Additional context
No response
Hedera network
testnet
Version
2.17 and 2.14
Operating system
No response
The text was updated successfully, but these errors were encountered: