We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UnboundLocalError: local variable 'ata_pubkey' referenced before assignment
This line uses ata_pubkey that might not be initialized:
ata_pubkey
driftpy/src/driftpy/drift_client.py
Line 1024 in 961676c
which results in:
The reason is that only get initilized here
Line 986 in 961676c
if create_WSOL_token_account: ixs, ata_pubkey = await self.get_wrapped_sol_account_creation_ixs(amount) instructions.extend(ixs) user_token_account = ata_pubkey
Instead of ata_pubkey , user_token_account should be used
user_token_account
The text was updated successfully, but these errors were encountered:
Added a PR with a fix
#209
Sorry, something went wrong.
PR was merged
No branches or pull requests
This line uses
ata_pubkey
that might not be initialized:driftpy/src/driftpy/drift_client.py
Line 1024 in 961676c
which results in:
UnboundLocalError: local variable 'ata_pubkey' referenced before assignment
The reason is that only get initilized here
driftpy/src/driftpy/drift_client.py
Line 986 in 961676c
Instead of
ata_pubkey
,user_token_account
should be usedThe text was updated successfully, but these errors were encountered: