yungwine / TonTools

High-level OOP Python library to interact with TON Blockchain
MIT License
124 stars 26 forks source link

fix the process_jetton_data function #24

Closed xll970211 closed 2 months ago

xll970211 commented 2 months ago

The process_jetton_data method in get_jetton_data has issues, causing related operations to fail. I have fixed the retrieval of symbol, desc1, desc2, decimals, and name, but I couldn’t find the image information. I’m submitting this for your convenience.

22

bond2bill commented 2 months ago

Thank you for the update; But I just checked again with jetton master NOT and the error is still there. i call def .update() EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT

symbol = Cell.one_from_boc(b64decode(data)).refs[0].refs[0].refs[1].refs[0].bits.get_top_upped_array().decode().split('\x00')[-1] IndexError: list index out of range

xll970211 commented 2 months ago

Sorry, using the address you provided, the returned information is inconsistent with what I get using the address, so this method still has error。I will try modifying the method again. Thank you