Skip to content

Commit

Permalink
use recommended gas limit if it is higher!
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Nov 23, 2023
1 parent 28f8f06 commit 5fad0de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@ packageExtensions:
axios: ^1.6.0
'@shapeshiftoss/caip@*':
dependencies:
lodash: 4.17.21
axios: ^1.6.0
fs: npm:[email protected]
'[email protected]':
dependencies:
bs58: ^4.0.1
'[email protected]':
dependencies:
bs58: ^4.0.1
lodash: 4.17.21
'@shapeshiftoss/[email protected]':
dependencies:
'@ethersproject/contracts': ^5.7.0
Expand Down Expand Up @@ -187,6 +181,12 @@ packageExtensions:
assert: ^2.0.0
buffer: ^6.0.2
util: ^0.12.5
[email protected]:
dependencies:
bs58: ^4.0.1
[email protected]:
dependencies:
bs58: ^4.0.1
[email protected]:
dependencies:
'@chakra-ui/icon': ^3.0.12
Expand Down
2 changes: 1 addition & 1 deletion packages/keepkey-desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keepkey-desktop",
"version": "2.1.29",
"version": "2.1.30",
"author": {
"name": "KeepKey",
"email": "[email protected]"
Expand Down
8 changes: 5 additions & 3 deletions packages/keepkey-sdk-server/src/controllers/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ export class EthereumController extends ApiController {
// if (insight.recommended.gasPrice) {
// msg.gasPrice = insight.recommended.gasPrice
// }
// if (insight.recommended.gasLimit) {
// msg.gasLimit = insight.recommended.gasLimit
// }
if (body.gas && insight.recommended.gasLimit > body.gas) {
console.log("body.gas: ", body.gas)
console.log("insight.recommended.gasLimit: ", insight.recommended.gasLimit)
msg.gasLimit = insight.recommended.gasLimit
}
// if (insight.recommended.maxPriorityFeePerGas) {
// msg.maxPriorityFeePerGas = insight.recommended.maxPriorityFeePerGas
// }
Expand Down

0 comments on commit 5fad0de

Please sign in to comment.