create-sbc-app 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sbc-app",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Scaffold a new SBC App Kit project with one command.",
5
5
  "bin": {
6
6
  "create-sbc-app": "bin/cli.js"
@@ -577,17 +577,11 @@ async function getPermitSignature({
577
577
  const domain = {
578
578
  name: tokenName as string,
579
579
  version: '1',
580
- chainId: BigInt(chainId),
580
+ chainId: chainId,
581
581
  verifyingContract: tokenAddress as `0x${string}`,
582
582
  };
583
-
583
+
584
584
  const types = {
585
- EIP712Domain: [
586
- { name: 'name', type: 'string' },
587
- { name: 'version', type: 'string' },
588
- { name: 'chainId', type: 'uint256' },
589
- { name: 'verifyingContract', type: 'address' },
590
- ],
591
585
  Permit: [
592
586
  { name: 'owner', type: 'address' },
593
587
  { name: 'spender', type: 'address' },
@@ -595,18 +589,18 @@ async function getPermitSignature({
595
589
  { name: 'nonce', type: 'uint256' },
596
590
  { name: 'deadline', type: 'uint256' },
597
591
  ],
598
- } as const;
599
-
592
+ };
593
+
600
594
  const message = {
601
595
  owner: ownerChecksum,
602
596
  spender: spenderChecksum,
603
- value: value,
604
- nonce: nonce as bigint,
605
- deadline: BigInt(deadline),
597
+ value: value.toString(),
598
+ nonce: nonce.toString(),
599
+ deadline: deadline.toString(),
606
600
  };
607
-
601
+
608
602
  const signature = await walletClient.signTypedData({
609
- account: walletClient.account!,
603
+ account: ownerChecksum as `0x${string}`,
610
604
  domain,
611
605
  types,
612
606
  primaryType: 'Permit',