Skip to content

Commit aceec2b

Browse files
authored
fix: cancel transaction (#11287)
* fix: cancel transaction * chore: revert gas
1 parent e3b2430 commit aceec2b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: packages/web3-providers/src/Web3/EVM/apis/ConnectionAPI.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as web3_utils from /* webpackDefer: true */ 'web3-utils'
22
import { delay } from '@masknet/kit'
3-
import { BigNumber } from 'bignumber.js'
43
import type { Account, ECKeyIdentifier, Proof, UpdatableWallet, Wallet, NetworkPluginID } from '@masknet/shared-base'
54
import {
65
type AddressType,
@@ -522,12 +521,6 @@ export class ConnectionAPI
522521
to: transaction.from,
523522
data: '0x0',
524523
value: '0x0',
525-
nonce:
526-
transaction.nonce ?
527-
web3_utils.toHex(new BigNumber(transaction.nonce).plus(1).toString())
528-
: undefined,
529-
// There are times when cancel transaction requires more gas
530-
gas: transaction.gas ? new BigNumber(transaction.gas).plus(1000).toString() : undefined,
531524
},
532525
],
533526
},

0 commit comments

Comments
 (0)