@aomi-labs/client 0.1.20 → 0.1.21
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 +3 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1845,6 +1845,7 @@ function isAlchemySponsorshipLimitError(error) {
|
|
|
1845
1845
|
import { createAlchemySmartAccount } from "@getpara/aa-alchemy";
|
|
1846
1846
|
import { createPimlicoSmartAccount } from "@getpara/aa-pimlico";
|
|
1847
1847
|
import { privateKeyToAccount } from "viem/accounts";
|
|
1848
|
+
var ALCHEMY_7702_DELEGATION_ADDRESS = "0x69007702764179f14F51cdce752f4f775d74E139";
|
|
1848
1849
|
async function createAAProviderState(options) {
|
|
1849
1850
|
if (options.provider === "alchemy") {
|
|
1850
1851
|
return createAlchemyAAState({
|
|
@@ -2044,7 +2045,7 @@ async function createAlchemyWalletApisState(params) {
|
|
|
2044
2045
|
provider: "alchemy",
|
|
2045
2046
|
mode: params.mode,
|
|
2046
2047
|
AAAddress: accountAddress,
|
|
2047
|
-
delegationAddress: params.mode === "7702" ?
|
|
2048
|
+
delegationAddress: params.mode === "7702" ? ALCHEMY_7702_DELEGATION_ADDRESS : void 0,
|
|
2048
2049
|
sendTransaction: async (call) => sendCalls([call]),
|
|
2049
2050
|
sendBatchTransaction: async (calls) => sendCalls(calls)
|
|
2050
2051
|
};
|