mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
note
This commit is contained in:
parent
1478e21f90
commit
c521fa6bdb
1 changed files with 2 additions and 0 deletions
|
|
@ -498,6 +498,8 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
|
|||
}
|
||||
|
||||
func (c *bigModExp) Run(input []byte) ([]byte, error) {
|
||||
|
||||
// Note: This can be done more efficiently
|
||||
var (
|
||||
baseLen = new(big.Int).SetBytes(getData(input, 0, 32)).Uint64()
|
||||
expLen = new(big.Int).SetBytes(getData(input, 32, 32)).Uint64()
|
||||
|
|
|
|||
Loading…
Reference in a new issue