koilib 5.2.0 → 5.2.1

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
@@ -10029,6 +10029,9 @@ class Contract {
10029
10029
  args = argu;
10030
10030
  }
10031
10031
  const operation = await this.encodeOperation({ name, args });
10032
+ if (opts.onlyOperation) {
10033
+ return { operation };
10034
+ }
10032
10035
  if (readOnly) {
10033
10036
  if (!output)
10034
10037
  throw new Error(`No output defined for ${name}`);
@@ -10054,7 +10057,11 @@ class Contract {
10054
10057
  ...(opts.payer && { payer: opts.payer }),
10055
10058
  ...(opts.payee && { payee: opts.payee }),
10056
10059
  },
10057
- operations: [operation],
10060
+ operations: [
10061
+ ...(opts.previousOperations ? opts.previousOperations : []),
10062
+ operation,
10063
+ ...(opts.nextOperations ? opts.nextOperations : []),
10064
+ ],
10058
10065
  });
10059
10066
  const optsSend = {
10060
10067
  broadcast: opts.broadcast,