paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.38k stars 2.65k forks source link

Configuration parameters appear two different outcomes in "fn on_finalize(block_number: T::BlockNumber)" #4626

Open ghost opened 4 years ago

ghost commented 4 years ago

there are my code:

  1. "Founders get(fn founders) config(): Vec;"
  2. "fn on_finalize(block_number: T::BlockNumber) { // 打印创始团队成员的AccountId debug::RuntimeLogger::init(); debug::print!("mine module fouders:---------------------------------{:?}", Self::founders());}"

but when i run the code on the console, there are two different outcomes. why? 1

ghost commented 4 years ago

1