We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58883c9 commit c791858Copy full SHA for c791858
1 file changed
agixt/payments/crypto.py
@@ -167,7 +167,15 @@ async def _verify_on_solana(
167
168
# Extract account keys from the transaction message
169
transaction = value.transaction.transaction
170
- account_keys = [str(key) for key in transaction.message.account_keys]
+ raw_keys = transaction.message.account_keys
171
+
172
+ # Handle both ParsedAccount objects (from jsonParsed encoding) and raw keys
173
+ if raw_keys and hasattr(raw_keys[0], "pubkey"):
174
+ # ParsedAccount objects - extract pubkey attribute
175
+ account_keys = [str(key.pubkey) for key in raw_keys]
176
+ else:
177
+ # Raw public keys
178
+ account_keys = [str(key) for key in raw_keys]
179
180
# Convert token balances from solders objects to dictionaries
181
def convert_token_balance(tb):
0 commit comments