File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 1
- import type {
2
- DeployTransaction ,
3
- Transaction ,
4
- TransactionError ,
5
- } from "@thirdweb-dev/sdk" ;
1
+ import type { DeployTransaction , Transaction } from "@thirdweb-dev/sdk" ;
6
2
import { ERC4337EthersSigner } from "@thirdweb-dev/wallets/dist/declarations/src/evm/connectors/smart-wallet/lib/erc4337-signer" ;
7
3
import { BigNumber } from "ethers" ;
8
4
import type { ContractExtension } from "../../schema/extension" ;
@@ -28,18 +24,6 @@ export const queueTx = async ({
28
24
deployedContractAddress,
29
25
deployedContractType,
30
26
} : QueueTxParams ) => {
31
- try {
32
- if ( ! deployedContractAddress ) {
33
- await tx . simulate ( ) ;
34
- }
35
- } catch ( err : any ) {
36
- const errorMessage =
37
- ( err as TransactionError ) ?. reason || ( err as any ) . message || err ;
38
- throw new Error (
39
- `Transaction simulation failed with reason: ${ errorMessage } ` ,
40
- ) ;
41
- }
42
-
43
27
// TODO: We need a much safer way of detecting if the transaction should be a user operation
44
28
const isUserOp = ! ! ( tx . getSigner as ERC4337EthersSigner ) . erc4337provider ;
45
29
const txData = {
You can’t perform that action at this time.
0 commit comments