@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 +2 -4
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
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
|
|
1453
|
-
|
|
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
|
|
1702
|
-
|
|
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
|
|
1630
|
-
|
|
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);
|