@blackcube/xgate-sdk 0.58.1 → 0.58.2

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
@@ -159,17 +159,22 @@ function createAccountXex(xex, access) {
159
159
  },
160
160
  { default: "a" }
161
161
  );
162
- case "pacifica" /* Pacifica */:
162
+ case "pacifica" /* Pacifica */: {
163
+ const secretKey = access.privateKey ?? "";
164
+ const signataire = secretKey === "" ? null : new Pacifica().helpers().solanaAddress(secretKey);
165
+ const compte = adresse();
163
166
  return new Pacifica(
164
167
  {
165
168
  a: {
166
- secretKey: access.privateKey ?? "",
167
- publicKey: adresse(),
168
- network: access.network ?? "mainnet"
169
+ secretKey,
170
+ publicKey: compte,
171
+ network: access.network ?? "mainnet",
172
+ ...signataire !== null && signataire !== compte ? { agentWallet: signataire } : {}
169
173
  }
170
174
  },
171
175
  { default: "a" }
172
176
  );
177
+ }
173
178
  case "lighter" /* Lighter */:
174
179
  return new Lighter(
175
180
  {