@atomiqlabs/chain-starknet 4.0.0-dev.19 → 4.0.0-dev.20
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.
|
@@ -74,7 +74,7 @@ class StarknetSwapData extends base_1.SwapData {
|
|
|
74
74
|
this.claimerBounty = offererOrData.claimerBounty == null ? null : BigInt(offererOrData.claimerBounty);
|
|
75
75
|
this.kind = offererOrData.kind;
|
|
76
76
|
this.extraData = offererOrData.extraData;
|
|
77
|
-
this.successAction = offererOrData.successAction == null ? null : {
|
|
77
|
+
this.successAction = offererOrData.successAction == null || Array.isArray(offererOrData.successAction) ? null : {
|
|
78
78
|
executionHash: offererOrData.successAction.executionHash,
|
|
79
79
|
executionExpiry: BigInt(offererOrData.successAction.executionExpiry),
|
|
80
80
|
executionFee: BigInt(offererOrData.successAction.executionFee),
|
|
@@ -117,7 +117,7 @@ class StarknetSwapData extends base_1.SwapData {
|
|
|
117
117
|
claimerBounty: this.claimerBounty == null ? null : this.claimerBounty.toString(10),
|
|
118
118
|
kind: this.kind,
|
|
119
119
|
extraData: this.extraData,
|
|
120
|
-
successAction: this.successAction == null
|
|
120
|
+
successAction: this.successAction == null ? null : {
|
|
121
121
|
executionHash: this.successAction.executionHash,
|
|
122
122
|
executionExpiry: this.successAction.executionExpiry.toString(10),
|
|
123
123
|
executionFee: this.successAction.executionFee.toString(10)
|
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ export class StarknetSwapData extends SwapData {
|
|
|
159
159
|
this.claimerBounty = offererOrData.claimerBounty==null ? null : BigInt(offererOrData.claimerBounty);
|
|
160
160
|
this.kind = offererOrData.kind;
|
|
161
161
|
this.extraData = offererOrData.extraData;
|
|
162
|
-
this.successAction = offererOrData.successAction==null ? null : {
|
|
162
|
+
this.successAction = offererOrData.successAction==null || Array.isArray(offererOrData.successAction) ? null : {
|
|
163
163
|
executionHash: offererOrData.successAction.executionHash,
|
|
164
164
|
executionExpiry: BigInt(offererOrData.successAction.executionExpiry),
|
|
165
165
|
executionFee: BigInt(offererOrData.successAction.executionFee),
|
|
@@ -207,7 +207,7 @@ export class StarknetSwapData extends SwapData {
|
|
|
207
207
|
claimerBounty: this.claimerBounty==null ? null : this.claimerBounty.toString(10),
|
|
208
208
|
kind: this.kind,
|
|
209
209
|
extraData: this.extraData,
|
|
210
|
-
successAction: this.successAction==null
|
|
210
|
+
successAction: this.successAction==null ? null : {
|
|
211
211
|
executionHash: this.successAction.executionHash,
|
|
212
212
|
executionExpiry: this.successAction.executionExpiry.toString(10),
|
|
213
213
|
executionFee: this.successAction.executionFee.toString(10)
|