@atomiqlabs/chain-starknet 4.0.0-dev.17 → 4.0.0-dev.19
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.
|
@@ -57,7 +57,7 @@ class StarknetSpvWithdrawalData extends base_1.SpvWithdrawalTransactionData {
|
|
|
57
57
|
];
|
|
58
58
|
}
|
|
59
59
|
getFrontingId() {
|
|
60
|
-
const txHashU256 = starknet_1.cairo.uint256(base_1.BigIntBufferUtils.fromBuffer(buffer_1.Buffer.from(this.btcTx.txid), "le"));
|
|
60
|
+
const txHashU256 = starknet_1.cairo.uint256(base_1.BigIntBufferUtils.fromBuffer(buffer_1.Buffer.from(this.btcTx.txid, "hex"), "le"));
|
|
61
61
|
let frontingId = starknet_1.hash.computePoseidonHashOnElements([
|
|
62
62
|
txHashU256.low,
|
|
63
63
|
txHashU256.high,
|
|
@@ -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 ? null : {
|
|
120
|
+
successAction: this.successAction == null || Array.isArray(this.successAction) ? 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
|
@@ -64,7 +64,7 @@ export class StarknetSpvWithdrawalData extends SpvWithdrawalTransactionData {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
getFrontingId(): string {
|
|
67
|
-
const txHashU256 = cairo.uint256(BigIntBufferUtils.fromBuffer(Buffer.from(this.btcTx.txid), "le"));
|
|
67
|
+
const txHashU256 = cairo.uint256(BigIntBufferUtils.fromBuffer(Buffer.from(this.btcTx.txid, "hex"), "le"));
|
|
68
68
|
let frontingId = hash.computePoseidonHashOnElements([
|
|
69
69
|
txHashU256.low,
|
|
70
70
|
txHashU256.high,
|
|
@@ -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 ? null : {
|
|
210
|
+
successAction: this.successAction==null || Array.isArray(this.successAction) ? null : {
|
|
211
211
|
executionHash: this.successAction.executionHash,
|
|
212
212
|
executionExpiry: this.successAction.executionExpiry.toString(10),
|
|
213
213
|
executionFee: this.successAction.executionFee.toString(10)
|