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 {
6767
6868 /// Return a record plaintext from a string.
6969 ///
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+ ///
7172 /// @returns {RecordPlaintext} Record plaintext
7273 #[ wasm_bindgen( js_name = fromString) ]
7374 pub fn from_string ( record : & str ) -> Result < RecordPlaintext , String > {
7475 Self :: from_str ( record) . map_err ( |_| "The record plaintext string provided was invalid" . into ( ) )
7576 }
7677
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.
7883 #[ wasm_bindgen( js_name = getMember) ]
7984 pub fn get_member ( & self , input : String ) -> Result < Plaintext , String > {
8085 let entry = self
You can’t perform that action at this time.
0 commit comments