Make sure that weight for loading code into the sandbox is accounted for (#10448)

This commit is contained in:
Alexander Theißen authored and GitHub committed 2021-12-10 15:26:17 +01:00
1 parent eee31418ba
commit 91260e8b05
5 files changed
+653 -625

No files matched your search

+1 -1
View File
@@ -1903,7 +1903,7 @@ fn reinstrument_does_charge() {
assert!(result2.gas_consumed > result1.gas_consumed);
assert_eq!(
result2.gas_consumed,
result1.gas_consumed + <Test as Config>::WeightInfo::instrument(code_len / 1024),
result1.gas_consumed + <Test as Config>::WeightInfo::reinstrument(code_len / 1024),
);
});
}