Commit 304a56c 1 parent 357cb16 commit 304a56c Copy full SHA for 304a56c
File tree 1 file changed +3
-8
lines changed
precompiles/dispatch-lockdrop/src
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,7 @@ where
106
106
exit_status : ExitError :: OutOfGas ,
107
107
} ) ;
108
108
}
109
-
110
- handle. record_external_cost ( Some ( weight) , Some ( info. weight . proof_size ( ) ) ) ?;
109
+ handle. record_external_cost ( Some ( weight) , None ) ?;
111
110
112
111
// 3. Ensure that the caller matches the public key
113
112
if caller != Self :: get_evm_address_from_pubkey ( pubkey. as_bytes ( ) ) {
@@ -130,19 +129,15 @@ where
130
129
if post_info. pays_fee ( & info) == Pays :: Yes {
131
130
let actual_weight = post_info. actual_weight . unwrap_or ( info. weight ) ;
132
131
let cost = Runtime :: GasWeightMapping :: weight_to_gas ( actual_weight) ;
133
- handle. record_cost ( cost ) ?;
132
+ handle. record_external_cost ( None , Some ( info . weight . proof_size ( ) ) ) ?;
134
133
135
134
handle. refund_external_cost (
136
135
Some (
137
136
info. weight
138
137
. ref_time ( )
139
138
. saturating_sub ( actual_weight. ref_time ( ) ) ,
140
139
) ,
141
- Some (
142
- info. weight
143
- . proof_size ( )
144
- . saturating_sub ( actual_weight. proof_size ( ) ) ,
145
- ) ,
140
+ None ,
146
141
) ;
147
142
}
148
143
You can’t perform that action at this time.
0 commit comments