Skip to content

Commit

Permalink
chore: rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 23, 2024
1 parent d3bcdf1 commit e35ff4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {aggregateSignatures, Signature} from "@chainsafe/blst";
import {BitArray, toHexString} from "@chainsafe/ssz";
import {BitArray} from "@chainsafe/ssz";
import {
ForkName,
ForkSeq,
Expand Down
6 changes: 4 additions & 2 deletions packages/beacon-node/src/util/sszBytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ export function getAttDataFromSignedAggregateAndProofElectra(data: Uint8Array):
if (data.length < endIndex + SIGNATURE_SIZE + COMMITTEE_BITS_SIZE) {
return null;
}
return toBase64(data.subarray(startIndex, endIndex));
attDataBuf.set(data.subarray(startIndex, endIndex));
return attDataBuf.toString("base64");
}

/**
Expand All @@ -217,7 +218,8 @@ export function getCommitteeBitsFromSignedAggregateAndProofElectra(data: Uint8Ar
return null;
}

return toBase64(data.subarray(startIndex, endIndex));
committeeBitsDataBuf.set(data.subarray(startIndex, endIndex));
return committeeBitsDataBuf.toString("base64");
}

/**
Expand Down

0 comments on commit e35ff4a

Please sign in to comment.