Skip to content

Commit 30df9ff

Browse files
committed
fix doc comment for to_js_eip12 methods;
1 parent 804108e commit 30df9ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bindings/ergo-lib-wasm/src/ergo_box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)))

bindings/ergo-lib-wasm/src/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)))

bindings/ergo-lib-wasm/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)))

0 commit comments

Comments
 (0)