Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Apr 4, 2024
1 parent 17b9f44 commit 32fc2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/offchain/offchain-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const isSignedOffchainAttestationV1 = (
return 'v' in attestation && 'r' in attestation && 's' in attestation;
};

function convertV1AttestationToV2(attestation: SignedOffchainAttestationV1): SignedOffchainAttestation {
const convertV1AttestationToV2 = (attestation: SignedOffchainAttestationV1): SignedOffchainAttestation => {
const { v, r, s, ...rest } = attestation;
return {
...rest,
Expand All @@ -216,4 +216,4 @@ function convertV1AttestationToV2(attestation: SignedOffchainAttestationV1): Sig
s
}
};
}
};

0 comments on commit 32fc2c7

Please sign in to comment.