-
This is not clear in any related documentation Sample code: `call = substrate.compose_call( hx = str(call).encode().hex() #1 Any help or pointers would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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 typeScaleBytes
). So the actual bytes are stored incall.data.data
. Also there is a convenience function that the string representation of aScaleBytes
is in0x1234
hex-format, so you can also just usestr(call.data)