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 has not been signed correctly #102

Open
kirito-cwx opened this issue Feb 8, 2024 · 1 comment
Open

transaction has not been signed correctly #102

kirito-cwx opened this issue Feb 8, 2024 · 1 comment

Comments

@kirito-cwx
Copy link

I can place order to a delegated account ,but came across the following error when cancel the order, anyone ever met with this or have ideas about this error?
raise AttributeError("transaction has not been signed correctly")
AttributeError: transaction has not been signed correctly

await drift_client.cancel_order(order_id=2)

@0xbigz
Copy link
Member

0xbigz commented Mar 6, 2024

you need to pass the authority of the account the delegate is running on to driftClient

if delegate key is Y
and delegated account is X
authority here should be X

example here:

parser.add_argument("--authority", type=str, required=False, default=None)

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

2 participants