Skip to content

Commit

Permalink
use ReadScalar
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Jan 24, 2024
1 parent 005eb24 commit e0789a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ func TestNewGenesisLvl1Commit(t *testing.T) {
t.Fatalf("decoding scalar bytes: %s", err)
}
reverse(scalarBytes) // Reverse bytes so we use LE
scalars[i].SetBytesLECanonical(scalarBytes)
scalars_i, err := common.ReadScalar(bytes.NewReader(scalarBytes))
if err != nil {
t.Fatalf("reading scalar: %s", err)
}
scalars[i] = *scalars_i
}
comm := ipaConf.Commit(scalars)
commBytes := comm.Bytes()
Expand Down

0 comments on commit e0789a5

Please sign in to comment.