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

Unable to send transaction bad Auth #1145

Closed
KoxyG opened this issue Feb 16, 2025 · 2 comments
Closed

Unable to send transaction bad Auth #1145

KoxyG opened this issue Feb 16, 2025 · 2 comments
Labels

Comments

@KoxyG
Copy link

KoxyG commented Feb 16, 2025

Image

Describe the bug
I am currently building a custodian wallet and trying to interact with a deployed escrow smart contract which has authorization in it. I keep having the error "Unable to send transaction, transaction failed, bad Auth. The function i am trying to call has authorization.

This is the link to my source code, i am calling the contract function create_order function in my smart contract. Starting from line 133 https://github.com/fastbuka/api.fastbuka.com/blob/koxy/src/payment/payment.service.ts

NOTE: I am currently just interacting with my contract address, I didn't generate a contract binding for it.

What version are you on?
"@stellar/stellar-sdk": "^13.1.0",

Expected behavior
I am expecting to see a transacion submitted successfully

Additional context
Attached is the screenshot of the error

@KoxyG KoxyG added the bug label Feb 16, 2025
@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Feb 16, 2025
@KoxyG
Copy link
Author

KoxyG commented Feb 16, 2025

Describe the bug I am currently building a custodian wallet and trying to interact with a deployed escrow smart contract which has authorization in it. I keep having the error "Unable to send transaction, not a valid contract address". My contract has been deployed on the testnet and this is a link to it. "https://stellar.expert/explorer/testnet/contract/CDAT7YWSEGA6XRPIGLVNX5TMBP7P66B5XI3RB6TYFBEFHU2LXHZIUDTL"

This is the link to my source code. Starting from line 133 https://github.com/fastbuka/api.fastbuka.com/blob/koxy/src/payment/payment.service.ts

NOTE: I am currently just interacting with my contract address, I didn't generate a contract binding for it.

What version are you on? "@stellar/stellar-sdk": "^12.3.0",

Expected behavior I am expecting to see a transacion submitted successfully

Additional context Add any other context about the problem here.

@silence48

@KoxyG KoxyG changed the title Unable to send transaction Unable to send transaction bad Auth Feb 17, 2025
@KoxyG KoxyG closed this as completed Feb 17, 2025
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Feb 17, 2025
@KoxyG KoxyG reopened this Feb 17, 2025
@KoxyG
Copy link
Author

KoxyG commented Feb 17, 2025

Issue solved. I had to make sure i saw signinge the prepared transaction and not the main transaction. I used this docs https://developers.stellar.org/docs/learn/encyclopedia/contract-development/contract-interactions/stellar-transaction#function

@KoxyG KoxyG closed this as completed Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant