@coinfello/agent-cli 0.1.16 → 0.1.18

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.js CHANGED
@@ -3355,17 +3355,20 @@ program.command("send_prompt").description("Send a prompt to CoinFello, creating
3355
3355
  const publicClient = createPublicClient(chain);
3356
3356
  console.log("Getting code...");
3357
3357
  const code = await publicClient.getCode({ address: smartAccount.address });
3358
+ console.log("code is ", code);
3358
3359
  const isDeployed = !!(code && code !== "0x");
3359
3360
  if (!isDeployed) {
3360
3361
  console.log("Getting factory args...");
3361
3362
  const factoryArgs = await smartAccount.getFactoryArgs();
3362
3363
  console.log("factory args ", JSON.stringify(factoryArgs, null, 4));
3363
- sig = serializeErc6492Signature({
3364
- signature,
3365
- address: factoryArgs.factory,
3366
- data: factoryArgs.factoryData
3367
- });
3368
- console.log("Serialized 6492 sig");
3364
+ if (factoryArgs.factory && factoryArgs.factoryData) {
3365
+ sig = serializeErc6492Signature({
3366
+ signature,
3367
+ address: factoryArgs.factory,
3368
+ data: factoryArgs.factoryData
3369
+ });
3370
+ console.log("Serialized 6492 sig");
3371
+ }
3369
3372
  }
3370
3373
  const signedSubdelegation = { ...subdelegation, signature: sig };
3371
3374
  console.log("Sending signed delegation...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinfello/agent-cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",