From 32fc2c7ef057b0384ac6d6d8bce642e09fa0f848 Mon Sep 17 00:00:00 2001 From: lbeder Date: Thu, 4 Apr 2024 18:54:19 +0100 Subject: [PATCH] Refactor --- src/offchain/offchain-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/offchain/offchain-utils.ts b/src/offchain/offchain-utils.ts index 3d42e9c..ab5c5c2 100644 --- a/src/offchain/offchain-utils.ts +++ b/src/offchain/offchain-utils.ts @@ -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, @@ -216,4 +216,4 @@ function convertV1AttestationToV2(attestation: SignedOffchainAttestationV1): Sig s } }; -} +};