Skip to content

Commit

Permalink
fix bug with get_publication function
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Jun 11, 2024
1 parent 1939efb commit 9fe4869
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/publication/publication.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ pub mod Publications {
profile_contract_address: ContractAddress
) -> u256 {
// logic here
println!("profile_contract_address: {:?}", profile_contract_address);
self._validatePointedPub(mirrorParams.profile_address, mirrorParams.pointed_pub_id);
self
.validateNotBlocked(
Expand All @@ -190,7 +189,7 @@ pub mod Publications {
let pub_id_assigned = pubIdAssigned
.get_user_publication_count(mirrorParams.profile_address);
let publication = self
.get_publication(mirrorParams.pointed_profile_address, pub_id_assigned);
.get_publication(mirrorParams.pointed_profile_address, mirrorParams.pointed_pub_id);

self
._fillRefeferencePublicationStorage(
Expand Down

0 comments on commit 9fe4869

Please sign in to comment.