diff --git a/packages/permissionless/actions/erc7579/installModule.ts b/packages/permissionless/actions/erc7579/installModule.ts index 1d38bed0..40a268d0 100644 --- a/packages/permissionless/actions/erc7579/installModule.ts +++ b/packages/permissionless/actions/erc7579/installModule.ts @@ -98,10 +98,10 @@ export async function installModule< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: installModuleCallData, - nonce: nonce ? BigInt(nonce) : undefined + nonce: nonce }, account: account, middleware diff --git a/packages/permissionless/actions/erc7579/installModules.ts b/packages/permissionless/actions/erc7579/installModules.ts index 50d3ce46..09ac6a8f 100644 --- a/packages/permissionless/actions/erc7579/installModules.ts +++ b/packages/permissionless/actions/erc7579/installModules.ts @@ -104,10 +104,10 @@ export async function installModules< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: installModulesCallData, - nonce: nonce ? BigInt(nonce) : undefined + nonce: nonce }, account: account, middleware diff --git a/packages/permissionless/actions/erc7579/uninstallModule.ts b/packages/permissionless/actions/erc7579/uninstallModule.ts index b9283f03..491c8ce0 100644 --- a/packages/permissionless/actions/erc7579/uninstallModule.ts +++ b/packages/permissionless/actions/erc7579/uninstallModule.ts @@ -102,10 +102,10 @@ export async function uninstallModule< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: uninstallModuleCallData, - nonce: nonce ? BigInt(nonce) : undefined + nonce: nonce }, account: account, middleware diff --git a/packages/permissionless/actions/erc7579/uninstallModules.ts b/packages/permissionless/actions/erc7579/uninstallModules.ts index 1d0713f7..fc1452d0 100644 --- a/packages/permissionless/actions/erc7579/uninstallModules.ts +++ b/packages/permissionless/actions/erc7579/uninstallModules.ts @@ -109,10 +109,10 @@ export async function uninstallModules< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: uninstallModulesCallData, - nonce: nonce ? BigInt(nonce) : undefined + nonce: nonce }, account: account, middleware diff --git a/packages/permissionless/actions/smartAccount/deployContract.ts b/packages/permissionless/actions/smartAccount/deployContract.ts index 99efd92e..74a340e1 100644 --- a/packages/permissionless/actions/smartAccount/deployContract.ts +++ b/packages/permissionless/actions/smartAccount/deployContract.ts @@ -91,8 +91,8 @@ export async function deployContract< )({ userOperation: { sender: account.address, - maxFeePerGas: request.maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: request.maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: request.maxFeePerGas, + maxPriorityFeePerGas: request.maxPriorityFeePerGas, callData: await account.encodeDeployCallData({ abi, bytecode, diff --git a/packages/permissionless/actions/smartAccount/sendTransaction.ts b/packages/permissionless/actions/smartAccount/sendTransaction.ts index f87c7243..7792857d 100644 --- a/packages/permissionless/actions/smartAccount/sendTransaction.ts +++ b/packages/permissionless/actions/smartAccount/sendTransaction.ts @@ -124,8 +124,8 @@ export async function sendTransaction< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: callData, nonce: nonce ? BigInt(nonce) : undefined }, diff --git a/packages/permissionless/actions/smartAccount/sendTransactions.ts b/packages/permissionless/actions/smartAccount/sendTransactions.ts index d8f8829e..55af2210 100644 --- a/packages/permissionless/actions/smartAccount/sendTransactions.ts +++ b/packages/permissionless/actions/smartAccount/sendTransactions.ts @@ -125,8 +125,8 @@ export async function sendTransactions< )({ userOperation: { sender: account.address, - maxFeePerGas: maxFeePerGas || BigInt(0), - maxPriorityFeePerGas: maxPriorityFeePerGas || BigInt(0), + maxFeePerGas: maxFeePerGas, + maxPriorityFeePerGas: maxPriorityFeePerGas, callData: callData, nonce: nonce },