File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
bindings/ergo-lib-wasm/src Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ impl ErgoBox {
171171 }
172172
173173 /// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
174- /// (similar to [`Self::to_json`], but with box value and token amount encoding as strings)
174+ /// (similar to [`Self::to_json`], but as JS object with box value and token amounts encoding as strings)
175175 pub fn to_js_eip12 ( & self ) -> Result < JsValue , JsValue > {
176176 let box_dapp: ErgoBoxJsonEip12 = self . 0 . clone ( ) . into ( ) ;
177177 JsValue :: from_serde ( & box_dapp) . map_err ( |e| JsValue :: from_str ( & format ! ( "{}" , e) ) )
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl Token {
108108 }
109109
110110 /// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
111- /// (similar to [`Self::to_json`], but with box value and token amount encoding as strings )
111+ /// (similar to [`Self::to_json`], but as JS object with token amount encoding as string )
112112 pub fn to_js_eip12 ( & self ) -> Result < JsValue , JsValue > {
113113 let t_dapp: TokenJsonEip12 = self . 0 . clone ( ) . into ( ) ;
114114 JsValue :: from_serde ( & t_dapp) . map_err ( |e| JsValue :: from_str ( & format ! ( "{}" , e) ) )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl Transaction {
7878 }
7979
8080 /// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
81- /// (similar to [`Self::to_json`], but with box value and token amount encoding as strings)
81+ /// (similar to [`Self::to_json`], but as JS object with box value and token amount encoding as strings)
8282 pub fn to_js_eip12 ( & self ) -> Result < JsValue , JsValue > {
8383 let tx_dapp: TransactionJsonEip12 = self . 0 . clone ( ) . into ( ) ;
8484 JsValue :: from_serde ( & tx_dapp) . map_err ( |e| JsValue :: from_str ( & format ! ( "{}" , e) ) )
You can’t perform that action at this time.
0 commit comments