Skip to content

Commit

Permalink
set notifications enabled in instantiate
Browse files Browse the repository at this point in the history
  • Loading branch information
darwinzer0 committed Dec 19, 2024
1 parent fae2f66 commit f3d7491
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::notifications::{
AllowanceNotification, MultiRecvdNotification, MultiSpentNotification, RecvdNotification, SpentNotification
};
use crate::state::{
Config, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, TOTAL_SUPPLY
Config, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, NOTIFICATIONS_ENABLED, TOTAL_SUPPLY
};
use crate::strings::TRANSFER_HISTORY_UNSUPPORTED_MSG;

Expand Down Expand Up @@ -120,6 +120,8 @@ pub fn instantiate(
CHANNELS.insert(deps.storage, &channel)?;
}

NOTIFICATIONS_ENABLED.save(deps.storage, &true)?;

let mut rng = ContractPrng::new(rng_seed.as_slice(), &sha_256(&msg.prng_seed.0));
for balance in initial_balances {
let amount = balance.amount.u128();
Expand Down

0 comments on commit f3d7491

Please sign in to comment.