mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-07-27 23:37:45 +00:00
fix(core): block event processor account keys bytes
This commit is contained in:
@@ -12,7 +12,7 @@ enabled: true # You can turn off the bot w/o removing its config
|
||||
separate_process: true
|
||||
|
||||
# Options: "pump_fun" (default), "lets_bonk"
|
||||
platform: "pump_fun"
|
||||
platform: "lets_bonk"
|
||||
|
||||
# Geyser configuration (fastest method for getting updates)
|
||||
geyser:
|
||||
|
||||
@@ -262,9 +262,14 @@ class LetsBonkEventParser(EventParser):
|
||||
if len(ix_data) <= 8 or len(ix.accounts) < 10:
|
||||
continue
|
||||
|
||||
account_keys_bytes = [
|
||||
bytes(key)
|
||||
for key in transaction.message.account_keys
|
||||
]
|
||||
|
||||
# Parse the 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:
|
||||
return token_info
|
||||
|
||||
@@ -248,10 +248,15 @@ class PumpFunEventParser(EventParser):
|
||||
# Token creation should have substantial data and many accounts
|
||||
if len(ix_data) <= 8 or len(ix.accounts) < 10:
|
||||
continue
|
||||
|
||||
account_keys_bytes = [
|
||||
bytes(key)
|
||||
for key in transaction.message.account_keys
|
||||
]
|
||||
|
||||
# Parse the 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:
|
||||
return token_info
|
||||
|
||||
Reference in New Issue
Block a user