You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use want to create an Address object from a PubKeyHash or Ripemd160, the fromHex will complain, that it needs 21 bytes (the first byte is the network prefix), even if you pass the network as a second parameter. Hence you always need to append the prefix manually.
This should be done automatically under the hood.
The text was updated successfully, but these errors were encountered:
If you use want to create an Address object from a
PubKeyHash
orRipemd160
, thefromHex
will complain, that it needs 21 bytes (the first byte is the network prefix), even if you pass the network as a second parameter. Hence you always need to append the prefix manually.This should be done automatically under the hood.
The text was updated successfully, but these errors were encountered: