pub fn to_ergo_box(&self) -> Result<ErgoBox, JsValue> {
        self.0
            .clone()
            .try_extract_into::<ergo_lib::ergotree_ir::chain::ergo_box::ErgoBox>()
            .map(Into::into)
            .map_err(to_js)
    }
/// Extract ErgoBox value, returning error if wrong type
Extract ErgoBox value, returning error if wrong type
Extract ErgoBox value returning error if wrong type
pub fn to_ergo_box(&self) -> Result<ErgoBox, JsValue> {
        self.0
            .clone()
            .try_extract_into::<ergo_lib::ergotree_ir::chain::ergo_box::ErgoBox>()
            .map(Into::into)
            .map_err(to_js)
    }
pub fn to_ergo_box ( & self ) -> Result < ErgoBox , JsValue > { self . 0 . clone ( ) . try_extract_into :: < ergo_lib :: ergotree_ir :: chain :: ergo_box :: ErgoBox > ( ) . map ( Into :: into ) . map_err ( to_js ) }
Extract ErgoBox value, returning error if wrong type
Extract ErgoBox value returning error if wrong type
&self
&self