Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
fix: state transition signature validation in data contract structur…
Browse files Browse the repository at this point in the history
…e validation (#150)
  • Loading branch information
jawid-h authored Apr 3, 2020
1 parent 33fc472 commit 7f2e7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function validateDataContractCreateTransitionStructureFactory(
const stateTransition = new DataContractCreateTransition(rawStateTransition);

result.merge(
await validateStateTransitionSignature(stateTransition, dataContractId),
await validateStateTransitionSignature(stateTransition, dataContract.getOwnerId()),
);

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('validateDataContractCreateTransitionStructureFactory', () => {

expect(validateStateTransitionSignatureMock).to.be.calledOnceWith(
stateTransition,
dataContract.getId(),
dataContract.getOwnerId(),
);

expect(validateIdentityExistenceMock).to.be.calledOnceWithExactly(
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('validateDataContractCreateTransitionStructureFactory', () => {

expect(validateStateTransitionSignatureMock).to.be.calledOnceWith(
stateTransition,
dataContract.getId(),
dataContract.getOwnerId(),
);

expect(validateIdentityExistenceMock).to.be.calledOnceWithExactly(
Expand Down

0 comments on commit 7f2e7eb

Please sign in to comment.