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
While upgrading mininscript to track master branch I found that the PushBytes::read_scriptint function is unwieldy.
Should we add this back in:
/// Decodes an integer in script(minimal CScriptNum) format.////// See [`PushBytes::read_scriptint`] for documentation.pubfnread_scriptint(v:&[u8]) -> Result<i64,Error>{let push = <&PushBytes>::try_from(v).map_err(|_| Error::NumericOverflow)?;
push.read_scriptint()}