mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Make sure that weight for loading code into the sandbox is accounted for (#10448)
This commit is contained in:
committed by
GitHub
parent
eee31418ba
commit
91260e8b05
@@ -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