You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for filling out this bug report. Please provide as much detail as possible.
If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].
[REQUIRED] Environment
Browser version: Node 20
AA SDK version: 4.3.1
Package: npm
[REQUIRED] Describe the problem
when we pass any field for overrride lets say, preVerificationGas override in buildUserOperation, that specific field response type changes from hex to bignumber
How to reproduce:
Pass key "preVerificationGas" in the overrides object of buildUserOperation. and compare the before and after the same field will have different response type.
Relevant code or sample repro:
code snippet :
uoEstimate=awaitsmartAccountClient.buildUserOperation({//@ts-ignoreuo: uoData,overrides: {//todo set multipliers fetched from db// paymasterAndData: "0x"maxFeePerGas: {multiplier: maxFeePerGasMultiplier,},maxPriorityFeePerGas: {multiplier: maxPriorityFeePerGasMultiplier,},// preVerificationGas: {// multiplier: GAS_MULTIPLIER.Economy //for now set to economy// }}//@ts-ignore},"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789");
Before preVerificationGas override
After preVerificationGas override
The text was updated successfully, but these errors were encountered:
Hey! this is expected behaviour as the type buildUserOperation returns is UserOperationStruct which has BigNumberish for those fields. If you then want all fields to be Hex for sending over the wire, you can call deepHexlify which is exported from @aa-sdk/core
Thanks for filling out this bug report. Please provide as much detail as possible.
If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].
[REQUIRED] Environment
[REQUIRED] Describe the problem
when we pass any field for overrride lets say, preVerificationGas override in buildUserOperation, that specific field response type changes from hex to bignumber
How to reproduce:
Pass key "preVerificationGas" in the overrides object of buildUserOperation. and compare the before and after the same field will have different response type.
Relevant code or sample repro:
code snippet :
Before preVerificationGas override
After preVerificationGas override
The text was updated successfully, but these errors were encountered: