reown-com / reown_flutter

Reown is the onchain UX platform that provides toolkits built on top of the WalletConnect Network that enable builders to create onchain user experiences that make digital ownership effortless, intuitive, and secure.
https://docs.reown.com
Apache License 2.0
37 stars 42 forks source link

Error in polkadart (Try changing the literal to something that can be represented in JavaScript) #164

Open tututumuru opened 4 weeks ago

tututumuru commented 4 weeks ago

SDK Affected

WalletKit

Describe the bug

When trying to build a project I get an error (WEB of https://github.com/reown-com/reown_flutter/tree/develop/packages/reown_walletkit/example).

...
../../../../../../../.pub-cache/hosted/pub.dev/polkadart-0.4.7/lib/substrate/hash/xxh64.dart:19:32: Error: The integer literal 0xC2B2AE3D27D4EB4F can't be represented exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript 0xc2b2ae3d27d4e800 is the nearest value that can be represented exactly.
  static const int prime64_2 = 0xC2B2AE3D27D4EB4F;
                               ^^^^^^^^^^^^^^^^^^
...

To Reproduce

I build the current develop.

ENV:

Flutter 3.29.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 09de023485 (3 months ago) • 2025-02-28 13:44:05 -0800 Engine • revision 871f65ac1b Tools • Dart 3.7.0 • DevTools 2.42.2

linear[bot] commented 4 weeks ago

APKTN-491 Error in polkadart (Try changing the literal to something that can be represented in JavaScript)

quetool commented 3 weeks ago

Hello @tututumuru, apparently polkadart does not support web platform. Our SDK does it but we use polkadart only in the sample (wallet) app. So basically the issue here is in the sample wallet, not the SDK (reown_walletkit).

I'll try to find a better package as soon as I can but for now I can't do much.