Skip to content

Commit

Permalink
fix: cancel transaction (#11287)
Browse files Browse the repository at this point in the history
* fix: cancel transaction

* chore: revert gas
  • Loading branch information
guanbinrui authored Jan 12, 2024
1 parent e3b2430 commit aceec2b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/web3-providers/src/Web3/EVM/apis/ConnectionAPI.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as web3_utils from /* webpackDefer: true */ 'web3-utils'
import { delay } from '@masknet/kit'
import { BigNumber } from 'bignumber.js'
import type { Account, ECKeyIdentifier, Proof, UpdatableWallet, Wallet, NetworkPluginID } from '@masknet/shared-base'
import {
type AddressType,
Expand Down Expand Up @@ -522,12 +521,6 @@ export class ConnectionAPI
to: transaction.from,
data: '0x0',
value: '0x0',
nonce:
transaction.nonce ?
web3_utils.toHex(new BigNumber(transaction.nonce).plus(1).toString())
: undefined,
// There are times when cancel transaction requires more gas
gas: transaction.gas ? new BigNumber(transaction.gas).plus(1000).toString() : undefined,
},
],
},
Expand Down

0 comments on commit aceec2b

Please sign in to comment.