-
Notifications
You must be signed in to change notification settings - Fork 38
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
Token transaction do not return any event #33
Comments
@FrancescoGrazioso Could you provide a screenshot of the console after clicking "Approve" in the demo wallet? It should display "SUCCESS" after a few moments, or throw an error if execution failed. |
Or - this could be happening because the token you are trying to transfer is not associated to the demo account |
The transaction to associate the token to the wallet account has the same problem, i'll attach the console on the approving transaction. The following is the code that i'm using to approve the transaction `
} `
` |
Yes so the demo wallet doesn't support the token associate function yet - it's still very much a WIP but I will prioritze adding token association. Your events are going through fine, the wallet just doesn't have the UI to handle it yet! |
Ok thanks, i'll close the issue when you'll release the new version of the wallet |
Sounds good - I'll tag you when its ready :) |
@FrancescoGrazioso I've updated the demo wallet to support token associate/disassociate |
Keep an eye on the console when using it - errors such as "TOKEN_ALREADY_ASSOCIATED" aren't handled by the demo wallet yet |
Hmmm that looks to me like it should work - can you reach out to me (pluto) on discord? |
Using React, i'm trying to execute a token transfert using Hedera Token Service.
When i send the transaction to HashConnect the wallet prompts me to approve the transaction, but after that nothing happens.
Here's my code:
`export async function buyRTTToken(token, trsuaryAccountId,reciverAccountId) {
const client = hederaClient();
let transaction : TransferTransaction = await new TransferTransaction();
transaction.addTokenTransfer(token.tokenId, trsuaryAccountId, -10);
transaction.addTokenTransfer(token.tokenId, reciverAccountId, 10);
transaction.freezeWith(client);
}`
`export async function sendTransaction(tx: Transaction, signignAccount: string) {
let transactionBytes: Uint8Array = tx.toBytes();
}`
The following code aims to let the reciving user to sign the transaction and to pay for the fees of tranfer, since he is requesting token from the tresuary account
The text was updated successfully, but these errors were encountered: