all: fix typos in comments (#21118)
This commit is contained in:
@ -465,7 +465,7 @@ var (
|
||||
)
|
||||
|
||||
func (c *blake2F) Run(input []byte) ([]byte, error) {
|
||||
// Make sure the input is valid (correct lenth and final flag)
|
||||
// Make sure the input is valid (correct length and final flag)
|
||||
if len(input) != blake2FInputLength {
|
||||
return nil, errBlake2FInvalidInputLength
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ func callGas(isEip150 bool, availableGas, base uint64, callCost *big.Int) (uint6
|
||||
availableGas = availableGas - base
|
||||
gas := availableGas - availableGas/64
|
||||
// If the bit length exceeds 64 bit we know that the newly calculated "gas" for EIP150
|
||||
// is smaller than the requested amount. Therefor we return the new gas instead
|
||||
// is smaller than the requested amount. Therefore we return the new gas instead
|
||||
// of returning an error.
|
||||
if !callCost.IsUint64() || gas < callCost.Uint64() {
|
||||
return gas, nil
|
||||
|
Reference in New Issue
Block a user