Skip to content

Commit

Permalink
fix doc comment for to_js_eip12 methods;
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Aug 22, 2021
1 parent 804108e commit 30df9ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/ergo-lib-wasm/src/ergo_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl ErgoBox {
}

/// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
/// (similar to [`Self::to_json`], but with box value and token amount encoding as strings)
/// (similar to [`Self::to_json`], but as JS object with box value and token amounts encoding as strings)
pub fn to_js_eip12(&self) -> Result<JsValue, JsValue> {
let box_dapp: ErgoBoxJsonEip12 = self.0.clone().into();
JsValue::from_serde(&box_dapp).map_err(|e| JsValue::from_str(&format!("{}", e)))
Expand Down
2 changes: 1 addition & 1 deletion bindings/ergo-lib-wasm/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Token {
}

/// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
/// (similar to [`Self::to_json`], but with box value and token amount encoding as strings)
/// (similar to [`Self::to_json`], but as JS object with token amount encoding as string)
pub fn to_js_eip12(&self) -> Result<JsValue, JsValue> {
let t_dapp: TokenJsonEip12 = self.0.clone().into();
JsValue::from_serde(&t_dapp).map_err(|e| JsValue::from_str(&format!("{}", e)))
Expand Down
2 changes: 1 addition & 1 deletion bindings/ergo-lib-wasm/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Transaction {
}

/// JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23
/// (similar to [`Self::to_json`], but with box value and token amount encoding as strings)
/// (similar to [`Self::to_json`], but as JS object with box value and token amount encoding as strings)
pub fn to_js_eip12(&self) -> Result<JsValue, JsValue> {
let tx_dapp: TransactionJsonEip12 = self.0.clone().into();
JsValue::from_serde(&tx_dapp).map_err(|e| JsValue::from_str(&format!("{}", e)))
Expand Down

0 comments on commit 30df9ff

Please # to comment.