From fb8187d13848823fd3f8a88c3ef72d7fa94655f2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:36:16 +0400 Subject: [PATCH] Bump github.com/bits-and-blooms/bitset from 1.18.0 to 1.19.1 (#2327) * Bump github.com/bits-and-blooms/bitset from 1.18.0 to 1.19.1 Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.18.0 to 1.19.1. - [Release notes](https://github.com/bits-and-blooms/bitset/releases) - [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.18.0...v1.19.1) --- updated-dependencies: - dependency-name: github.com/bits-and-blooms/bitset dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Use Use BitSet.Words instead BitSet.Bytes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnkushinDaniil --- go.mod | 2 +- go.sum | 4 ++-- migration/migration.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index c8bb092e09..868d281aa6 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ go 1.23.1 require ( github.com/Masterminds/semver/v3 v3.3.1 github.com/NethermindEth/cairo-vm-go v0.0.0-20241022093807-167daddfd4a4 - github.com/bits-and-blooms/bitset v1.18.0 + github.com/bits-and-blooms/bitset v1.19.1 github.com/bits-and-blooms/bloom/v3 v3.7.0 github.com/cockroachdb/pebble v1.1.2 github.com/coder/websocket v1.8.12 diff --git a/go.sum b/go.sum index b521395538..db8130c693 100644 --- a/go.sum +++ b/go.sum @@ -33,8 +33,8 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24 github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= -github.com/bits-and-blooms/bitset v1.18.0 h1:eCa5BU3k9TtC6GP0r+bER6Si5ow7O0S+EXahjgwpLLs= -github.com/bits-and-blooms/bitset v1.18.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bits-and-blooms/bitset v1.19.1 h1:mv2yVhy96D2CuskLPXnc58oJNMs5PCWjAZuyYU0p12M= +github.com/bits-and-blooms/bitset v1.19.1/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/bits-and-blooms/bloom/v3 v3.7.0 h1:VfknkqV4xI+PsaDIsoHueyxVDZrfvMn56jeWUzvzdls= github.com/bits-and-blooms/bloom/v3 v3.7.0/go.mod h1:VKlUSvp0lFIYqxJjzdnSsZEw4iHb1kOL2tfHTgyJBHg= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= diff --git a/migration/migration.go b/migration/migration.go index e55fe3cfcb..107bd40f10 100644 --- a/migration/migration.go +++ b/migration/migration.go @@ -512,7 +512,7 @@ func calculateL1MsgHashes(txn db.Transaction, n *utils.Network) error { } func bitset2Key(bs *bitset.BitSet) *trie.Key { - bsWords := bs.Bytes() + bsWords := bs.Words() if len(bsWords) > felt.Limbs { panic("key too long to fit in Felt") }