Skip to content

Commit

Permalink
Change methods visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykoren committed Apr 22, 2024
1 parent 41dc431 commit 31ab51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zcash_primitives/src/transaction/components/issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn read_action<R: Read>(mut reader: R) -> io::Result<IssueAction> {
Ok(IssueAction::from_parts(asset_descr, notes, finalize))
}

fn read_note<R: Read>(mut reader: R) -> io::Result<Note> {
pub fn read_note<R: Read>(mut reader: R) -> io::Result<Note> {
let recipient = read_recipient(&mut reader)?;
let value = reader.read_u64::<LittleEndian>()?;
let asset = read_asset(&mut reader)?;
Expand Down Expand Up @@ -110,7 +110,7 @@ fn write_action<W: Write>(action: &IssueAction, mut writer: W) -> io::Result<()>
Ok(())
}

fn write_note<W: Write>(note: &Note, writer: &mut W) -> io::Result<()> {
pub fn write_note<W: Write>(note: &Note, writer: &mut W) -> io::Result<()> {
writer.write_all(&note.recipient().to_raw_address_bytes())?;
writer.write_u64::<LittleEndian>(note.value().inner())?;
writer.write_all(&note.asset().to_bytes())?;
Expand Down

0 comments on commit 31ab51a

Please sign in to comment.