Comments (7)
Additional context:
we are using [email protected]
and [email protected]
from permissionless.js.
hey are you using es2022
?
from permissionless.js.
I can confirm, es2022
helped to resolve the same issue for me few days ago
from permissionless.js.
I've switched it to es2022
from es2020
, I'm getting 40 different errors from permissionless
now:
/node_modules/permissionless/actions/smartAccount/sendTransaction.ts
114:8-21
[tsl] ERROR in /node_modules/permissionless/actions/smartAccount/sendTransaction.ts(114,9)
TS2375: Type '{ sender: `0x${string}`; paymasterAndData: "0x"; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; callData: `0x${string}`; nonce: bigint | undefined; }' is not assignable to type 'PartialBy<UserOperation, "sender" | "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Type '{ sender: `0x${string}`; paymasterAndData: "0x"; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; callData: `0x${string}`; nonce: bigint | undefined; }' is not assignable to type 'Partial<Pick<UserOperation, "sender" | "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'nonce' are incompatible.
Type 'bigint | undefined' is not assignable to type 'bigint'.
Type 'undefined' is not assignable to type 'bigint'.
ERROR in node_modules/permissionless/actions/smartAccount/signTypedData.ts
137:46-56
[tsl] ERROR in node_modules/permissionless/actions/smartAccount/signTypedData.ts(137,47)
TS2379: Argument of type '{ domain: ((TTypedData extends { [x: string]: readonly TypedDataParameter[]; [x: `string[${string}]`]: undefined; [x: `function[${string}]`]: undefined; [x: `address[${string}]`]: undefined; [x: `uint256[${string}]`]: undefined; [x: `bytes[${string}]`]: undefined; [x: `bytes32[${string}]`]: undefined; [x: `bool[${st...' is not assignable to parameter of type '{ domain?: TypedDataDomain; }' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'domain' are incompatible.
Type '((TTypedData extends { [x: string]: readonly TypedDataParameter[]; [x: `string[${string}]`]: undefined; [x: `function[${string}]`]: undefined; [x: `address[${string}]`]: undefined; [x: `uint256[${string}]`]: undefined; [x: `bytes[${string}]`]: undefined; [x: `bytes32[${string}]`]: undefined; [x: `bool[${string}]`]: ...' is not assignable to type 'TypedDataDomain'.
Type 'undefined' is not assignable to type 'TypedDataDomain'.
ERROR in /node_modules/permissionless/actions/smartAccount/sendTransactions.ts
118:8-21
[tsl] ERROR in /node_modules/permissionless/actions/smartAccount/sendTransactions.ts(118,9)
TS2375: Type '{ sender: `0x${string}`; paymasterAndData: "0x"; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; callData: `0x${string}`; nonce: bigint | undefined; }' is not assignable to type 'PartialBy<UserOperation, "sender" | "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Type '{ sender: `0x${string}`; paymasterAndData: "0x"; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; callData: `0x${string}`; nonce: bigint | undefined; }' is not assignable to type 'Partial<Pick<UserOperation, "sender" | "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData" | "signature">>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'nonce' are incompatible.
Type 'bigint | undefined' is not assignable to type 'bigint'.
Type 'undefined' is not assignable to type 'bigint'.
from permissionless.js.
Which version are you using?
from permissionless.js.
"permissionless": "^0.0.34"
from permissionless.js.
Hey so with viem 2.x.x
you will have to use permissionless 0.1.x
from permissionless.js.
Related Issues (20)
- Unable to resolve file when using React Native HOT 5
- Missing js output files HOT 3
- BigInt literals are not available when targeting lower than ES2020 HOT 4
- Package fails to compile due to missing dependency HOT 1
- pm_sponsorUserOperation calldata hex contains 'NaN' HOT 4
- Question: When exactly the promise from `smartAccountClient.sendTransaction` is resolved? HOT 1
- Type error: Type 'TPrimaryType' does not satisfy the constraint 'string'. when trying to build application HOT 1
- getSenderAddress not working on tenderly fork HOT 3
- Wagmi Connectors: `useWalletClient` not working HOT 2
- TypeError: parameters.transport is not a function HOT 8
- getTypesForEIP712Domain error HOT 9
- custom endpoint address HOT 1
- Compile error This expression is not callable. Type 'never' has no call signatures. HOT 8
- RPC Error in providerToSmartAccountSigner for web3auth provider HOT 4
- This member cannot have an 'override' modifier because it is not declared in the base class 'BaseError'. HOT 2
- Seperating waitForUserOperationReceipt from sendTransaction HOT 4
- Handling of erroneous transactions HOT 7
- signerToEcdsaKernelSmartAccount doesn't work for Blast HOT 2
- Type 'unknown' is not assignable to type 'TypedDataDomain | undefined' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from permissionless.js.