four-flap-meme-sdk 1.6.37 → 1.6.38

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.
@@ -405,8 +405,9 @@ export class HopWalletManager {
405
405
  // 发送 handleOps
406
406
  try {
407
407
  const connectedPayer = payerWallet.connect(this.provider);
408
- const entryPoint = this.aaManager.getEntryPoint();
409
- const entryPointWithSigner = entryPoint.connect(connectedPayer);
408
+ const entryPointAddress = this.aaManager.getEntryPointAddress();
409
+ // 直接创建新 Contract 实例(跟其他地方一样)
410
+ const entryPointWithSigner = new ethers.Contract(entryPointAddress, ['function handleOps((address sender,uint256 nonce,bytes initCode,bytes callData,uint256 callGasLimit,uint256 verificationGasLimit,uint256 preVerificationGas,uint256 maxFeePerGas,uint256 maxPriorityFeePerGas,bytes paymasterAndData,bytes signature)[] ops, address payable beneficiary) external'], connectedPayer);
410
411
  const tx = await entryPointWithSigner.handleOps(userOps, payerWallet.address, {
411
412
  gasPrice,
412
413
  gasLimit: 500000n * BigInt(userOps.length),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.6.37",
3
+ "version": "1.6.38",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",