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
constpopulatedTx={to: to,data: data,value: value,chainId: targetChainId};//remove any value that has any bigint type.
...
constestimatedGas=useEstimatedGas({...populatedGas,query: { gcTime....}};constunsignedTx={...populatedTx,gas: estimatedGas,maxFeePerGas: parseEther('101','gwei'),maxPriorityFeePerGas: parseEther('100','gwei'),}...
...
useEstimateGas call uses UseEstimateGasParameters<Config, number, bigint> params as type, which can cause error as it contains bigint type.
I think whether disallowing bigint type, nor coverting bigint to number or string type is required.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
version
[TypeError: Do not know how to serialize a BigInt]
So I modified my code like this
useEstimateGas
call usesUseEstimateGasParameters<Config, number, bigint>
params as type, which can cause error as it contains bigint type.I think whether disallowing bigint type, nor coverting bigint to number or string type is required.
Beta Was this translation helpful? Give feedback.
All reactions