Skip to content

Commit

Permalink
chain spec
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyatulu committed Apr 27, 2024
1 parent eb6d2d9 commit 51713ef
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ trunk serve

<https://paritytech.github.io/subxt-explorer/#/>

### Chain Specification

./target/release/node-template build-spec > chain_spec.json

### Multi-Node Local Testnet

If you want to see the multi-node consensus algorithm in action, refer to
Expand Down
166 changes: 166 additions & 0 deletions chain_spec.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion pallets/positive-externality/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ pub mod pallet {
let creator = ensure_signed(origin)?;

ensure_content_is_valid(content.clone())?;
T::SharedStorageSource::check_citizen_is_approved_link(creator.clone())?;

// Citizen approved To comment out in production, citizen approved in added in profile validation

// T::SharedStorageSource::check_citizen_is_approved_link(creator.clone())?;

let new_post_id = Self::next_positive_externality_post_id();

Expand Down Expand Up @@ -206,6 +209,7 @@ pub mod pallet {
let stake = PositiveExternalityStakeBalance::<T>::get(&who);
let total_balance = stake.saturating_add(deposit);
PositiveExternalityStakeBalance::<T>::insert(&who, total_balance);


// emit event
Ok(())
Expand Down

0 comments on commit 51713ef

Please sign in to comment.