Skip to content

Commit 42176e3

Browse files
committed
Merge branch 'master' into v2.1
2 parents 46a1895 + db0fdff commit 42176e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/transactionManagers/CpkTransactionManager/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)