mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
fix references test
This commit is contained in:
@@ -274,7 +274,7 @@ func TestStateReferenceCopy_NoUnexpectedAttestationsMutation(t *testing.T) {
|
||||
|
||||
// assertRefCount checks whether reference count for a given state
|
||||
// at a given index is equal to expected amount.
|
||||
func assertRefCount(t *testing.T, b *BeaconState, idx fieldIndex, want uint) {
|
||||
func assertRefCount(t *testing.T, b *BeaconState, idx fieldIndex, want uint64) {
|
||||
if cnt := b.sharedFieldReferences[idx].refs; cnt != want {
|
||||
t.Errorf("Unexpected count of references for index %d, want: %v, got: %v", idx, want, cnt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user