fix(core): block event processor account keys bytes

This commit is contained in:
smypmsa
2025-08-02 16:41:23 +00:00
parent 26c048c86a
commit bae03c3fab
3 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ enabled: true # You can turn off the bot w/o removing its config
separate_process: true separate_process: true
# Options: "pump_fun" (default), "lets_bonk" # Options: "pump_fun" (default), "lets_bonk"
platform: "pump_fun" platform: "lets_bonk"
# Geyser configuration (fastest method for getting updates) # Geyser configuration (fastest method for getting updates)
geyser: geyser:
+6 -1
View File
@@ -262,9 +262,14 @@ class LetsBonkEventParser(EventParser):
if len(ix_data) <= 8 or len(ix.accounts) < 10: if len(ix_data) <= 8 or len(ix.accounts) < 10:
continue continue
account_keys_bytes = [
bytes(key)
for key in transaction.message.account_keys
]
# Parse the instruction # Parse the instruction
token_info = self.parse_token_creation_from_instruction( token_info = self.parse_token_creation_from_instruction(
ix_data, ix.accounts, transaction.message.account_keys ix_data, ix.accounts, account_keys_bytes
) )
if token_info: if token_info:
return token_info return token_info
+6 -1
View File
@@ -249,9 +249,14 @@ class PumpFunEventParser(EventParser):
if len(ix_data) <= 8 or len(ix.accounts) < 10: if len(ix_data) <= 8 or len(ix.accounts) < 10:
continue continue
account_keys_bytes = [
bytes(key)
for key in transaction.message.account_keys
]
# Parse the instruction # Parse the instruction
token_info = self.parse_token_creation_from_instruction( token_info = self.parse_token_creation_from_instruction(
ix_data, ix.accounts, transaction.message.account_keys ix_data, ix.accounts, account_keys_bytes
) )
if token_info: if token_info:
return token_info return token_info