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
If args contains bigint the react-query will fail when it does JSON.stringify on queryKey (Chrome turns bigint into string and will successfully stringify it).
If ABI uses types such as core::integer::u128, you are forced to use bigint in args as string will throw error on build.
There needs to be some transformation that will replace bigints in the args with base10 string.
If anyone is facing this problem, I have bypassed it with this:
The problem stems from this:
starknet-react/packages/core/src/hooks/use-call.ts
Lines 117 to 134 in 820849d
If
args
containsbigint
the react-query will fail when it doesJSON.stringify
on queryKey (Chrome turns bigint into string and will successfully stringify it).If ABI uses types such as
core::integer::u128
, you are forced to usebigint
in args asstring
will throw error on build.There needs to be some transformation that will replace bigints in the args with base10 string.
If anyone is facing this problem, I have bypassed it with this:
The text was updated successfully, but these errors were encountered: