Why the args
of transaction constructor are strictly required to be UInt8Array
?
#631
Labels
args
of transaction constructor are strictly required to be UInt8Array
?
#631
I noticed the following code in the transaction constructor:
It forces the args to be of type
Uint8Array
, but ignores the inheritance tree. I stumbled upon this when tried to passBuffer
as transaction args, but received this error. My question is: is it intentional to force args to be strictlyUInt8Array
? Because I'd suggest to useinstanceof
here if it won't break anything.The text was updated successfully, but these errors were encountered: