Skip to content

Commit

Permalink
Merge branch 'master' into check-ethereaum-address
Browse files Browse the repository at this point in the history
  • Loading branch information
vrolland committed Apr 6, 2020
2 parents 582f9d4 + 5988865 commit ead0138
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions packages/integration-test/test/layers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ describe('Request system', () => {
payer,
};

const topics = [
Utils.crypto.normalizeKeccak256Hash(payeeIdentity),
Utils.crypto.normalizeKeccak256Hash(payer),
];
const topics = [payeeIdentity, payer];

const resultCreation = await requestLogic.createRequest(
requestCreationHash,
Expand Down Expand Up @@ -223,10 +220,7 @@ describe('Request system', () => {
payer,
};

const topics = [
Utils.crypto.normalizeKeccak256Hash(payeeIdentity),
Utils.crypto.normalizeKeccak256Hash(payer),
];
const topics = [payeeIdentity, payer];

const resultCreation = await requestLogic.createRequest(
requestCreationHash,
Expand Down Expand Up @@ -275,6 +269,7 @@ describe('Request system', () => {

const requestCreationHash: RequestLogicTypes.ICreateParameters = {
currency: {
network: 'testnet',
type: RequestLogicTypes.CURRENCY.BTC,
value: 'BTC',
},
Expand All @@ -284,10 +279,7 @@ describe('Request system', () => {
payer,
};

const topics = [
Utils.crypto.normalizeKeccak256Hash(payeeIdentity),
Utils.crypto.normalizeKeccak256Hash(payer),
];
const topics = [payeeIdentity, payer];

const resultCreation = await requestLogic.createRequest(
requestCreationHash,
Expand Down Expand Up @@ -322,7 +314,7 @@ describe('Request system', () => {
timestamp: Utils.getCurrentTimestampInSecond(),
};
// create a unique topic just to not have collisions in tests
const topics1 = [Utils.crypto.normalizeKeccak256Hash(request1CreationHash)];
const topics1 = [request1CreationHash];
const resultCreation1 = await requestLogic.createRequest(
request1CreationHash,
payeeIdentity,
Expand Down Expand Up @@ -411,10 +403,7 @@ describe('Request system', () => {
payer: payerIdentity,
};

const topics = [
Utils.crypto.normalizeKeccak256Hash(payeeIdentity),
Utils.crypto.normalizeKeccak256Hash(payerIdentity),
];
const topics = [payeeIdentity, payerIdentity];

const resultCreation = await requestLogic.createEncryptedRequest(
requestCreationHash,
Expand Down

0 comments on commit ead0138

Please sign in to comment.