Skip to content

Commit f3d7491

Browse files
committedDec 19, 2024·
set notifications enabled in instantiate
1 parent fae2f66 commit f3d7491

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/contract.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use crate::notifications::{
3131
AllowanceNotification, MultiRecvdNotification, MultiSpentNotification, RecvdNotification, SpentNotification
3232
};
3333
use crate::state::{
34-
Config, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, TOTAL_SUPPLY
34+
Config, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, NOTIFICATIONS_ENABLED, TOTAL_SUPPLY
3535
};
3636
use crate::strings::TRANSFER_HISTORY_UNSUPPORTED_MSG;
3737

@@ -120,6 +120,8 @@ pub fn instantiate(
120120
CHANNELS.insert(deps.storage, &channel)?;
121121
}
122122

123+
NOTIFICATIONS_ENABLED.save(deps.storage, &true)?;
124+
123125
let mut rng = ContractPrng::new(rng_seed.as_slice(), &sha_256(&msg.prng_seed.0));
124126
for balance in initial_balances {
125127
let amount = balance.amount.u128();

0 commit comments

Comments
 (0)
Please sign in to comment.