You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this behaviour is inconsistent with other SDK methods, such as TransferTransaction, which do accept their own equivalents of variations 1 and 2.
constassocTxId=assocTx.transactionId;logger.log('The token association transaction ID:',assocTxId.toString());awaitlogger.logSectionWithWaitPrompt('Submitting token association transaction');constassocTxSigned=awaitassocTx.sign(account1Key);constassocTxSubmitted=awaitassocTxSigned.execute(client);constassocTxReceipt=awaitassocTxSubmitted.getReceipt(client);constassocTxStatus=assocTxReceipt.status;logger.log('The token association transaction status is:',assocTxStatus.toString(),);
Additional context
Additional context
The error is INVALID_ACCOUNT_ID and the full output is copied below.
The error occurs when getReceipt is invoked.
@tinker-michaelj A hacker participating in our Hello Future Hackathon has raised this issue. If you get a chance to look at this issue that would be greatly appreciated! Thank you !
Description
Description copied from issue: hashgraph/hedera-sdk-js#2442
Variation 1 - EVM address as string:
Variation 2 - account ID based on EVM address:
Variation 3 - Account ID in S.R.N format:
This also occurs for
TokenFreezeTransaction()
as it was reported by a developer who is part of the Hello Future Hackathon.Steps to reproduce
Steps to reproduce
Additional context
Additional context
The error is INVALID_ACCOUNT_ID and the full output is copied below.
The error occurs when getReceipt is invoked.
ReceiptStatusError: receipt for transaction [email protected] contained error status INVALID_ACCOUNT_ID
at new ReceiptStatusError (file:///Users/user/code/hedera/hedera-tokens-cyoa-tutorial/node_modules/@hashgraph/sdk/src/ReceiptStatusError.js:37:9)
at TransactionReceiptQuery._mapStatusError (file:///Users/user/code/hedera/hedera-tokens-cyoa-tutorial/node_modules/@hashgraph/sdk/src/transaction/TransactionReceiptQuery.js:332:16)
at TransactionReceiptQuery.execute (file:///Users/user/code/hedera/hedera-tokens-cyoa-tutorial/node_modules/@hashgraph/sdk/src/Executable.js:725:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransactionResponse.getReceipt (file:///Users/user/code/hedera/hedera-tokens-cyoa-tutorial/node_modules/@hashgraph/sdk/src/transaction/TransactionResponse.js:81:25)
at async scriptTokenHts (file:///Users/user/code/hedera/hedera-tokens-cyoa-tutorial/tokenHts/script-tokenHts.js:126:28) {
status: Status { _code: 15 },
transactionId: TransactionId {
accountId: AccountId {
shard: [Long],
realm: [Long],
num: [Long],
aliasKey: null,
evmAddress: null,
_checksum: null
},
validStart: Timestamp { seconds: [Long], nanos: [Long] },
scheduled: false,
nonce: null
},
transactionReceipt: TransactionReceipt {
status: Status { _code: 15 },
accountId: null,
fileId: null,
contractId: null,
topicId: null,
tokenId: null,
scheduleId: null,
exchangeRate: ExchangeRate {
hbars: 30000,
cents: 143313,
expirationTime: 2024-08-05T09:00:00.000Z,
exchangeRateInCents: 4.7771
},
topicSequenceNumber: Long { low: 0, high: 0, unsigned: false },
topicRunningHash: Uint8Array(0) [],
totalSupply: Long { low: 0, high: 0, unsigned: false },
scheduledTransactionId: null,
serials: [],
duplicates: [],
children: []
}
}
Hedera network
testnet
Version
2.48.1
Operating system
macOS
The text was updated successfully, but these errors were encountered: