File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/transactionManagers/CpkTransactionManager Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " contract-proxy-kit" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " Enable batched transactions and contract account interactions using a unique deterministic Gnosis Safe." ,
55 "main" : " lib/cjs/index.js" ,
66 "module" : " lib/esm/index.js" ,
Original file line number Diff line number Diff line change @@ -195,14 +195,16 @@ class CpkTransactionManager implements TransactionManager {
195195 // values > gasHigh will work
196196 gasHigh = testGasLimit - 1
197197 } else {
198- // values <= gasLow will work
198+ // values <= gasLow will fail
199199 gasLow = testGasLimit + 1
200200 }
201201 }
202- // the final target gas value is in the interval [gasLow, gasHigh)
202+ } else {
203+ gasHigh = gasLow - 1
203204 }
205+ // the final target gas value is > gasHigh
204206
205- const gasLimit = Math . min ( Math . ceil ( ( gasHigh + 1 ) * 1.1 ) , blockGasLimit )
207+ const gasLimit = Math . min ( Math . ceil ( ( gasHigh + 1 ) * 1.02 ) , blockGasLimit )
206208
207209 return { success : true , gasLimit }
208210 }
You can’t perform that action at this time.
0 commit comments