decode
should include an option like decodeMethodToHex?: boolean
#193
Labels
enhancement
New feature or request
Currently the
decode
function will return amethod
field for each case includingdecodeUnsignedTx
,decodeSignedTx
, anddecodeSigningPayload
. Themethod
will be of typeTxMethod
, but it would be nice to have an option withinOptionsWithMeta
calleddecodeMethodToHex
which allows the method to be returned as a hex value.In order to have this work, within each decode method used in
decode
you would need a conditional to check whether the option exists and/or is true, then after:You would return method as something like:
This would take a bit of type refactoring, as the
TxMethod
type would need to be adjusted and will have residual affects across the core code base.The text was updated successfully, but these errors were encountered: