@atomiqlabs/chain-evm 1.0.0-dev.32 → 1.0.0-dev.33

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.
@@ -246,8 +246,8 @@ class EVMSwapData extends base_1.SwapData {
246
246
  }
247
247
  static deserializeFromStruct(struct, claimHandlerImpl) {
248
248
  const { payOut, payIn, reputation, sequence } = EVMSwapData.toFlags(BigInt(struct.flags));
249
- if (struct.successActionCommitment !== ethers_1.ZeroHash) // throw new Error("Success action not allowed!");
250
- return new EVMSwapData(struct.offerer, struct.claimer, struct.token, struct.refundHandler, struct.claimHandler, payOut, payIn, reputation, sequence, (0, ethers_1.hexlify)(struct.claimData), (0, ethers_1.hexlify)(struct.refundData), BigInt(struct.amount), struct.depositToken, BigInt(struct.securityDeposit), BigInt(struct.claimerBounty), claimHandlerImpl.getType(), null);
249
+ // if(struct.successActionCommitment !== ZeroHash) throw new Error("Success action not allowed!");
250
+ return new EVMSwapData(struct.offerer, struct.claimer, struct.token, struct.refundHandler, struct.claimHandler, payOut, payIn, reputation, sequence, (0, ethers_1.hexlify)(struct.claimData), (0, ethers_1.hexlify)(struct.refundData), BigInt(struct.amount), struct.depositToken, BigInt(struct.securityDeposit), BigInt(struct.claimerBounty), claimHandlerImpl.getType(), null);
251
251
  }
252
252
  }
253
253
  exports.EVMSwapData = EVMSwapData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.0.0-dev.32",
3
+ "version": "1.0.0-dev.33",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -339,7 +339,7 @@ export class EVMSwapData extends SwapData {
339
339
  static deserializeFromStruct(struct: EscrowDataStruct, claimHandlerImpl: IClaimHandler<any, any>): EVMSwapData {
340
340
  const {payOut, payIn, reputation, sequence} = EVMSwapData.toFlags(BigInt(struct.flags));
341
341
 
342
- if(struct.successActionCommitment !== ZeroHash) // throw new Error("Success action not allowed!");
342
+ // if(struct.successActionCommitment !== ZeroHash) throw new Error("Success action not allowed!");
343
343
 
344
344
  return new EVMSwapData(
345
345
  struct.offerer as string,