Skip to content

Commit

Permalink
changing the type of asset_desc to Vec<u8> from String
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-arte committed Sep 10, 2024
1 parent 07b3697 commit 08178a3
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 90 deletions.
2 changes: 1 addition & 1 deletion src/bundle/burn_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ mod tests {
let isk = IssuanceAuthorizingKey::from_bytes([1u8; 32]).unwrap();

(
AssetBase::derive(&IssuanceValidatingKey::from(&isk), asset_desc),
AssetBase::derive(&IssuanceValidatingKey::from(&isk), &asset_desc.into()),
value,
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/commitments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ pub(crate) fn hash_issue_bundle_txid_data<A: IssueAuth>(bundle: &IssueBundle<A>)
ind.update(note.rseed().as_bytes());
}
ia.update(ind.finalize().as_bytes());
ia.update(action.asset_desc().as_bytes());
ia.update(action.asset_desc().as_slice());
ia.update(&[u8::from(action.is_finalized())]);
}
h.update(ia.finalize().as_bytes());
Expand Down
Loading

0 comments on commit 08178a3

Please sign in to comment.