mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
Fix linter
This commit is contained in:
parent
c7cc8c08ed
commit
8698da045f
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ import (
|
|||
"github.com/ethereum/go-ethereum/crypto/bls12381"
|
||||
"github.com/ethereum/go-ethereum/crypto/bn256"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
|
||||
big2 "github.com/holiman/big"
|
||||
"golang.org/x/crypto/ripemd160"
|
||||
)
|
||||
|
|
@ -384,6 +385,7 @@ func (c *bigModExp) Run(input []byte) ([]byte, error) {
|
|||
mod = new(big2.Int).SetBytes(getData(input, baseLen+expLen, modLen))
|
||||
v []byte
|
||||
)
|
||||
|
||||
switch {
|
||||
case mod.BitLen() == 0:
|
||||
// Modulo 0 is undefined, return zero
|
||||
|
|
@ -394,6 +396,7 @@ func (c *bigModExp) Run(input []byte) ([]byte, error) {
|
|||
default:
|
||||
v = base.Exp(base, exp, mod).Bytes()
|
||||
}
|
||||
|
||||
return common.LeftPadBytes(v, int(modLen)), nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue