Skip to content

Commit

Permalink
primitives readme
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaos Dymitriadis <[email protected]>
  • Loading branch information
AmbientTea committed Jan 24, 2025
1 parent 5328c92 commit 0d53bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolkit/primitives/block-rewards/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Block Rewards Primitives

This crate implements the primitives and inherent data provider for the block producer
rewards feature. See the corresponding pallet's (`pallet-block-rewards`) documentation
for more information.
1 change: 1 addition & 0 deletions toolkit/primitives/block-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ where
BeneficiaryId: TryFrom<Vec<u8>> + Send + Sync + Encode,
<BeneficiaryId as TryFrom<Vec<u8>>>::Error: std::fmt::Debug,
{
/// Read and decode beneficiary ID from the specified environment variable
pub fn from_env(env_var: &str) -> Result<Self, InherentProviderCreationError> {
let beneficiary_string = std::env::var(env_var)
.map_err(|_| InherentProviderCreationError::NotSet(env_var.into()))?;
Expand Down

0 comments on commit 0d53bdb

Please sign in to comment.