File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,19 @@ impl RecordPlaintext {
67
67
68
68
/// Return a record plaintext from a string.
69
69
///
70
- /// @param {string} record String representation of a plaintext representation of an Aleo record
70
+ /// @param {string} record String representation of a plaintext representation of an Aleo record.
71
+ ///
71
72
/// @returns {RecordPlaintext} Record plaintext
72
73
#[ wasm_bindgen( js_name = fromString) ]
73
74
pub fn from_string ( record : & str ) -> Result < RecordPlaintext , String > {
74
75
Self :: from_str ( record) . map_err ( |_| "The record plaintext string provided was invalid" . into ( ) )
75
76
}
76
77
77
- // Get a record plaintext from
78
+ /// Get the record entry matching a key.
79
+ ///
80
+ /// @param {string} input The key to retrieve the value in the record data field.
81
+ ///
82
+ /// @returns {Plaintext} The plaintext value corresponding to the key.
78
83
#[ wasm_bindgen( js_name = getMember) ]
79
84
pub fn get_member ( & self , input : String ) -> Result < Plaintext , String > {
80
85
let entry = self
You can’t perform that action at this time.
0 commit comments