mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-04 16:27:07 +00:00
Make sure that weight for loading code into the sandbox is accounted for (#10448)
This commit is contained in:
1 parent
eee31418ba
commit
91260e8b05
5 files changed
+653
-625
No files matched your search
@@ -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),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user