Skip to content

Commit

Permalink
style: fix typo cancelation -> cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jun 3, 2020
1 parent beecc04 commit c8d3c17
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/contracts/NoteStream.sol
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ contract NoteStream is Pausable, ReentrancyGuard {

// Check that cancellation transaction is valid and perform transfer
// i.e. Each party receives a note of correct value
StreamUtilities._processCancelation(
StreamUtilities._processCancellation(
aceContractAddress,
_proof2,
withdrawalNoteHash,
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/StreamUtilities.sol
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ library StreamUtilities {
return newStreamNote.noteHash;
}

function _processCancelation(
function _processCancellation(
address _aceContractAddress,
bytes memory _proof2,
bytes32 _withdrawalNoteHash,
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/contracts/mocks/StreamUtilitiesMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ contract StreamUtilitiesMock {
);
}

function processCancelation(
function processCancellation(
address _aceContractAddress,
bytes memory _proof2,
bytes32 _proof1OutputNotes,
Types.AztecStream memory _stream
) public returns (bool) {
stream = _stream;
return
StreamUtilities._processCancelation(
StreamUtilities._processCancellation(
_aceContractAddress,
_proof2,
_proof1OutputNotes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('StreamUtilities - processCancellation', function () {
const badProofData = badProof.encodeABI(zkAsset.address);

await expect(
streamUtilitiesMock.processCancelation(
streamUtilitiesMock.processCancellation(
ace.address,
badProofData,
withdrawalNote.noteHash,
Expand Down Expand Up @@ -149,7 +149,7 @@ describe('StreamUtilities - processCancellation', function () {
const proofData = proof.encodeABI(zkAsset.address);

await expect(
streamUtilitiesMock.processCancelation(
streamUtilitiesMock.processCancellation(
ace.address,
proofData,
withdrawalNote.noteHash,
Expand Down

0 comments on commit c8d3c17

Please sign in to comment.