@triadxyz/triad-protocol 0.6.1-beta.devnet → 0.6.2-beta.devnet

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.
Files changed (2) hide show
  1. package/dist/trade.js +3 -1
  2. package/package.json +1 -1
package/dist/trade.js CHANGED
@@ -130,7 +130,9 @@ class Trade {
130
130
  amount: new bn_js_1.default(args.amount * Math.pow(10, constants_1.TRD_DECIMALS)),
131
131
  direction: args.direction,
132
132
  orderType: args.orderType,
133
- limitPrice: new bn_js_1.default(args.limitPrice * Math.pow(10, constants_1.TRD_DECIMALS)),
133
+ limitPrice: args.limitPrice
134
+ ? new bn_js_1.default(args.limitPrice * Math.pow(10, constants_1.TRD_DECIMALS))
135
+ : undefined,
134
136
  comment: (0, helpers_1.encodeString)(args.comment, 64)
135
137
  })
136
138
  .accounts({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.6.1-beta.devnet",
3
+ "version": "0.6.2-beta.devnet",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",