Skip to content

How to create Preimage hash? #305

Answered by arjanz
Marware asked this question in Q&A
Discussion options

You must be logged in to vote

The way you used to determine the bytes of the call is not correct, the bytes of the call (and any ScaleType) are stored in the call.data attribute (this is of type ScaleBytes). So the actual bytes are stored in call.data.data. Also there is a convenience function that the string representation of a ScaleBytes is in 0x1234 hex-format, so you can also just use str(call.data)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arjanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #79 on January 03, 2023 15:13.