Skip to content

Commit

Permalink
remove repetitive words in comments
Browse files Browse the repository at this point in the history
Signed-off-by: racerole <[email protected]>
  • Loading branch information
racerole committed Mar 6, 2024
1 parent 66e1a6e commit a1d0e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ func (c *bls12381MapG1) RequiredGas(input []byte) uint64 {

func (c *bls12381MapG1) Run(input []byte) ([]byte, error) {
// Implements EIP-2537 Map_To_G1 precompile.
// > Field-to-curve call expects `64` bytes an an input that is interpreted as a an element of the base field.
// > Field-to-curve call expects `64` bytes an input that is interpreted as a an element of the base field.
// > Output of this call is `128` bytes and is G1 point following respective encoding rules.
if len(input) != 64 {
return nil, errBLS12381InvalidInputLength
Expand Down Expand Up @@ -1039,7 +1039,7 @@ func (c *bls12381MapG2) RequiredGas(input []byte) uint64 {

func (c *bls12381MapG2) Run(input []byte) ([]byte, error) {
// Implements EIP-2537 Map_FP2_TO_G2 precompile logic.
// > Field-to-curve call expects `128` bytes an an input that is interpreted as a an element of the quadratic extension field.
// > Field-to-curve call expects `128` bytes an input that is interpreted as a an element of the quadratic extension field.
// > Output of this call is `256` bytes and is G2 point following respective encoding rules.
if len(input) != 128 {
return nil, errBLS12381InvalidInputLength
Expand Down

0 comments on commit a1d0e79

Please sign in to comment.