koilib 5.2.1 → 5.2.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/koinos.js CHANGED
@@ -10167,6 +10167,9 @@ class Contract {
10167
10167
  }),
10168
10168
  },
10169
10169
  };
10170
+ if (opts.onlyOperation) {
10171
+ return { operation };
10172
+ }
10170
10173
  let tx = await this.signer.prepareTransaction({
10171
10174
  header: {
10172
10175
  ...(opts.chainId && { chain_id: opts.chainId }),
@@ -10175,7 +10178,11 @@ class Contract {
10175
10178
  ...(opts.payer && { payer: opts.payer }),
10176
10179
  ...(opts.payee && { payee: opts.payee }),
10177
10180
  },
10178
- operations: [operation],
10181
+ operations: [
10182
+ ...(opts.previousOperations ? opts.previousOperations : []),
10183
+ operation,
10184
+ ...(opts.nextOperations ? opts.nextOperations : []),
10185
+ ],
10179
10186
  });
10180
10187
  const optsSend = {
10181
10188
  broadcast: opts.broadcast,