mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-20 18:58:05 +00:00
Update learning-examples/decode_from_getAccountInfo.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
f80e06e180
commit
957722ba73
@@ -42,7 +42,7 @@ class BondingCurveState:
|
|||||||
self.__dict__.update(parsed)
|
self.__dict__.update(parsed)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
parsed = self._STRUCT_1.parse(data[8:])
|
parsed = self._STRUCT_2.parse(data[8:])
|
||||||
self.__dict__.update(parsed)
|
self.__dict__.update(parsed)
|
||||||
# Convert raw bytes to Pubkey for creator field
|
# Convert raw bytes to Pubkey for creator field
|
||||||
if hasattr(self, 'creator') and isinstance(self.creator, bytes):
|
if hasattr(self, 'creator') and isinstance(self.creator, bytes):
|
||||||
|
|||||||
Reference in New Issue
Block a user