Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Remove old log
Browse files Browse the repository at this point in the history
  • Loading branch information
kikakkz committed Dec 8, 2023
1 parent 68f171b commit 67ebcf0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 33 deletions.
2 changes: 1 addition & 1 deletion activity/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl Activity {
.await?;
match author {
Some(author) => Ok(author),
_ => Err(ActivityError::InvalidActivity),
_ => Err(ActivityError::InvalidContentAuthor),
}
}

Expand Down
8 changes: 0 additions & 8 deletions activity/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,6 @@ impl Activity {
voters.insert(owner);
activity.voters.insert(object_id.clone(), voters.clone());
self.activities.insert(&activity_id, activity)?;
log::info!(
"{} vote to {} power {} voters {:?} activity {:?}",
owner,
object_id,
vote_power,
voters,
self.activities.get(&activity_id).await?
);
Ok(())
}
_ => return Err(ActivityError::ActivityObjectNotFound),
Expand Down
1 change: 0 additions & 1 deletion credit/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ impl Credit {
if state.initial_supply.eq(&Amount::ZERO) {
state.initial_supply = Amount::from_tokens(100000000);
}
log::info!("Initialize credits {:?}", state);
self.initial_supply.set(state.initial_supply);
self.balance.set(state.initial_supply);
self.amount_alive_ms.set(state.amount_alive_ms);
Expand Down
1 change: 0 additions & 1 deletion market/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ impl Market {
_ => return Err(StateError::CollectionNotExists),
};
if owner == buyer {
log::info!("TODO: buyer could not be the same as owner");
return Err(StateError::BuyerIsOwner);
}
let mut token_owners = token_owners.clone();
Expand Down
21 changes: 0 additions & 21 deletions review/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,27 +412,6 @@ impl Contract for Review {
Message::ExistReviewer { reviewer },
);
}
/*
let mut reviewers = Vec::new();
self.reviewers
.for_each_index_value(|_index, reviewer| -> Result<(), ViewError> {
reviewers.push(reviewer);
Ok(())
})
.await?;
log::info!(
"Synced reviewers to {} at {} creation {}",
context.message_id.chain_id,
context.chain_id,
system_api::current_application_id().creation.chain_id
);
for reviewer in reviewers {
result = result.with_authenticated_message(
context.message_id.chain_id,
Message::ExistReviewer { reviewer },
);
}
*/
result = result.with_authenticated_message(
context.message_id.chain_id,
Message::InitialState {
Expand Down
8 changes: 7 additions & 1 deletion webui/src/components/ReviewActivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ const onApproveClick = async () => {
endpoint: 'review',
chainId: targetChain.value
})
void router.back()
void router.push({
path: '/dashboard',
query: {
tab: 'review-activities',
port: port.value
}
})
}

const onRejectClick = async () => {
Expand Down

0 comments on commit 67ebcf0

Please sign in to comment.