Skip to content

Commit

Permalink
fix: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Risch authored and Alex Risch committed May 6, 2024
1 parent 155c719 commit 8117726
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/Contacts.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createConsentMessage } from '@xmtp/consent-proof-signature'
import { invitation } from '@xmtp/proto'
import Client from '@/Client'
import { Contacts } from '@/Contacts'
Expand Down Expand Up @@ -202,10 +203,7 @@ describe('Contacts', () => {
env: 'local',
})
const timestamp = Date.now()
const consentMessage = WalletSigner.consentProofRequestText(
bo.address,
timestamp
)
const consentMessage = createConsentMessage(bo.address, timestamp)
const signedMessage = await keySigner.wallet.signMessage(consentMessage)
const consentProofPayload = invitation.ConsentProofPayload.fromPartial({
signature: signedMessage,
Expand Down Expand Up @@ -239,10 +237,7 @@ describe('Contacts', () => {
env: 'local',
})
const timestamp = Date.now()
const consentMessage = WalletSigner.consentProofRequestText(
bo.address,
timestamp
)
const consentMessage = createConsentMessage(bo.address, timestamp)
const signedMessage = await keySigner.wallet.signMessage(consentMessage)
const consentProofPayload = invitation.ConsentProofPayload.fromPartial({
signature: signedMessage,
Expand Down Expand Up @@ -272,10 +267,7 @@ describe('Contacts', () => {
env: 'local',
})
const timestamp = Date.now()
const consentMessage = WalletSigner.consentProofRequestText(
bo.address,
timestamp + 1
)
const consentMessage = createConsentMessage(bo.address, timestamp + 1)
const signedMessage = await keySigner.wallet.signMessage(consentMessage)
const consentProofPayload = invitation.ConsentProofPayload.fromPartial({
signature: signedMessage,
Expand Down

0 comments on commit 8117726

Please sign in to comment.