Skip to content

Commit

Permalink
fix doc comment;
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Aug 23, 2021
1 parent 30df9ff commit 05ed5a7
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -163,7 +163,7 @@ impl UnsignedTransaction {
}

/// 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: UnsignedTransactionJsonEip12 = self.0.clone().into();
JsValue::from_serde(&tx_dapp).map_err(|e| JsValue::from_str(&format!("{}", e)))
Expand Down

0 comments on commit 05ed5a7

Please sign in to comment.