Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed May 10, 2024
1 parent dfa136d commit 8d664c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sn_transfers/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,15 @@ pub fn create_first_cash_note_from_key(
amount: NanoTokens::from(GENESIS_CASHNOTE_AMOUNT),
};

let reason = SpendReason::default();
let reason = match SpendReason::create_reward_tracking_reason("GENESIS") {
Ok(spend_reason) => spend_reason,
Err(err) => {
error!("Failed to generate spend_reason for genesis {err:?}");
return Err(Error::GenesisCashNoteError(format!(
"Failed to generate spend reason for genesis CashNote: {err}",
)));
}
};

let cash_note_builder = TransactionBuilder::default()
.add_input(
Expand Down

0 comments on commit 8d664c0

Please sign in to comment.