Skip to content

Commit

Permalink
fixes minor issues (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
yathishram authored Mar 15, 2022
1 parent bbda2aa commit 390489c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safient/core",
"version": "0.1.12-alpha",
"version": "0.1.13-alpha",
"description": "JavaScript SDK to manage safes and interact with Safient protocol.",
"keywords": [
"Web3",
Expand Down
4 changes: 2 additions & 2 deletions src/SafientCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export class SafientCore {
result.claims[result.claims.length - 1].claimStatus = claimStatus
if(claimStatus === ClaimStages.PASSED){
result.stage = SafeStages.RECOVERING
}else{
}else if(claimStatus === ClaimStages.FAILED || claimStatus === ClaimStages.REJECTED){
result.stage = SafeStages.ACTIVE
}
}
Expand Down Expand Up @@ -597,8 +597,8 @@ export class SafientCore {
}

if (createSafetxReceipt.status === 1) {
evidenceUri = await createClaimEvidenceUri(file, evidenceName, description);
if (safe.claimType === Types.ClaimType.ArbitrationBased) {
evidenceUri = await createClaimEvidenceUri(file, evidenceName, description);
tx = await this.contract.createClaim(safe._id, evidenceUri);
} else {
tx = await this.contract.createClaim(safe._id, '');
Expand Down
1 change: 0 additions & 1 deletion test/scenario5.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ describe('Scenario 5 - Creating signal based Safe', async () => {

it('Should send signal after claim', async () => {
const result = await creatorSc.createSignal(safeId);
console.log(result)//Passing a claim
expect(result.data.status).to.equal(1);
});

Expand Down

0 comments on commit 390489c

Please sign in to comment.