Skip to content

Commit

Permalink
fixed TestPubKey_MarshalJSON panic
Browse files Browse the repository at this point in the history
  • Loading branch information
alesforz committed Jan 10, 2025
1 parent 1f478ec commit 4fffebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bls12381/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestPubKey_MarshalJSON(t *testing.T) {
privKey, err := bls12381.GenPrivKey()
require.NoError(t, err)
defer privKey.Zeroize()
pubKey, _ := privKey.PubKey().(bls12381.PubKey)
pubKey, _ := privKey.PubKey().(*bls12381.PubKey)

jsonBytes, err := pubKey.MarshalJSON()
require.NoError(t, err)
Expand Down

0 comments on commit 4fffebf

Please sign in to comment.