@pafi-dev/core 0.7.5 → 0.7.7

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/dist/index.d.cts CHANGED
@@ -1173,8 +1173,8 @@ type SignAuthorizationFn = (args: {
1173
1173
  nonce: number;
1174
1174
  r: Hex | string;
1175
1175
  s: Hex | string;
1176
- v?: string | number;
1177
- yParity: 0 | 1 | string;
1176
+ v?: bigint | string | number;
1177
+ yParity: number | string;
1178
1178
  }>;
1179
1179
  /**
1180
1180
  * Authorization tuple in the shape `walletClient.sendTransaction`
package/dist/index.d.ts CHANGED
@@ -1173,8 +1173,8 @@ type SignAuthorizationFn = (args: {
1173
1173
  nonce: number;
1174
1174
  r: Hex | string;
1175
1175
  s: Hex | string;
1176
- v?: string | number;
1177
- yParity: 0 | 1 | string;
1176
+ v?: bigint | string | number;
1177
+ yParity: number | string;
1178
1178
  }>;
1179
1179
  /**
1180
1180
  * Authorization tuple in the shape `walletClient.sendTransaction`
package/dist/index.js CHANGED
@@ -838,7 +838,8 @@ async function delegateDirect(params) {
838
838
  nonce
839
839
  });
840
840
  const yParityRaw = raw.yParity;
841
- const yParity = typeof yParityRaw === "number" ? yParityRaw : String(yParityRaw) === "1" || String(yParityRaw) === "0x1" ? 1 : 0;
841
+ const yParityNum = typeof yParityRaw === "number" ? yParityRaw : String(yParityRaw) === "1" || String(yParityRaw) === "0x1" ? 1 : 0;
842
+ const yParity = yParityNum === 1 ? 1 : 0;
842
843
  const authorization = {
843
844
  contractAddress: target,
844
845
  chainId: params.chainId,