Add comments to `info()` implementations
@@ -127,6 +127,7 @@ impl Transaction for TxCreateWallet {
}
}
+ /// Provide information about the transaction to be used in the blockchain explorer.
fn info(&self) -> serde_json::Value {
serde_json::to_value(&self).expect("Cannot serialize transaction to JSON")
}
@@ -154,6 +155,7 @@ impl Transaction for TxTransfer {
}
}
+ /// Provide information about the transaction to be used in the blockchain explorer.
fn info(&self) -> serde_json::Value {
serde_json::to_value(&self).expect("Cannot serialize transaction to JSON")
}
