@agether/sdk 2.3.2 → 2.3.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/dist/cli.js CHANGED
@@ -1449,10 +1449,8 @@ var init_MorphoClient = __esm({
1449
1449
  * through an ERC-4337 UserOperation.
1450
1450
  */
1451
1451
  async exec(target, data, value = 0n) {
1452
- const executionCalldata = import_ethers.ethers.AbiCoder.defaultAbiCoder().encode(
1453
- ["address", "uint256", "bytes"],
1454
- [target, value, data]
1455
- );
1452
+ const valueHex = import_ethers.ethers.zeroPadValue(import_ethers.ethers.toBeHex(value), 32);
1453
+ const executionCalldata = import_ethers.ethers.concat([target, valueHex, data]);
1456
1454
  const safe7579Iface = new import_ethers.ethers.Interface(SAFE7579_ACCOUNT_ABI);
1457
1455
  const callData = safe7579Iface.encodeFunctionData("execute", [MODE_SINGLE, executionCalldata]);
1458
1456
  return this._submitUserOp(callData);
package/dist/index.js CHANGED
@@ -1698,10 +1698,8 @@ var MorphoClient = class {
1698
1698
  * through an ERC-4337 UserOperation.
1699
1699
  */
1700
1700
  async exec(target, data, value = 0n) {
1701
- const executionCalldata = import_ethers2.ethers.AbiCoder.defaultAbiCoder().encode(
1702
- ["address", "uint256", "bytes"],
1703
- [target, value, data]
1704
- );
1701
+ const valueHex = import_ethers2.ethers.zeroPadValue(import_ethers2.ethers.toBeHex(value), 32);
1702
+ const executionCalldata = import_ethers2.ethers.concat([target, valueHex, data]);
1705
1703
  const safe7579Iface = new import_ethers2.ethers.Interface(SAFE7579_ACCOUNT_ABI);
1706
1704
  const callData = safe7579Iface.encodeFunctionData("execute", [MODE_SINGLE, executionCalldata]);
1707
1705
  return this._submitUserOp(callData);
package/dist/index.mjs CHANGED
@@ -1626,10 +1626,8 @@ var MorphoClient = class {
1626
1626
  * through an ERC-4337 UserOperation.
1627
1627
  */
1628
1628
  async exec(target, data, value = 0n) {
1629
- const executionCalldata = ethers2.AbiCoder.defaultAbiCoder().encode(
1630
- ["address", "uint256", "bytes"],
1631
- [target, value, data]
1632
- );
1629
+ const valueHex = ethers2.zeroPadValue(ethers2.toBeHex(value), 32);
1630
+ const executionCalldata = ethers2.concat([target, valueHex, data]);
1633
1631
  const safe7579Iface = new ethers2.Interface(SAFE7579_ACCOUNT_ABI);
1634
1632
  const callData = safe7579Iface.encodeFunctionData("execute", [MODE_SINGLE, executionCalldata]);
1635
1633
  return this._submitUserOp(callData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agether/sdk",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "TypeScript SDK for Agether - autonomous credit for AI agents on Base",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",