Can you provide your code as well as an example of block for which your code does not work?
Also, have you looked at How can I decode bytes in ledger fields ledger? - #6 by fabrice
Can you provide your code as well as an example of block for which your code does not work?
Also, have you looked at How can I decode bytes in ledger fields ledger? - #6 by fabrice