pallet-evm: fix backend timestamp (#7245)

This commit is contained in:
Wei Tang
2020-09-30 23:02:20 +02:00
committed by GitHub
parent 721754bc6e
commit b54769a217
+1 -1
View File
@@ -80,7 +80,7 @@ impl<'vicinity, T: Trait> BackendT for Backend<'vicinity, T> {
fn block_timestamp(&self) -> U256 {
let now: u128 = pallet_timestamp::Module::<T>::get().unique_saturated_into();
U256::from(now)
U256::from(now / 1000)
}
fn block_difficulty(&self) -> U256 {