mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-12 07:54:27 +00:00
core/vm: fix mismatched names in comments (#1567)
This commit is contained in:
parent
a9c1861708
commit
36fb646cb1
2 changed files with 3 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ func RunPrecompiledContract(evm *EVM, p PrecompiledContract, input []byte, suppl
|
||||||
return output, suppliedGas, err
|
return output, suppliedGas, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// ECRECOVER implemented as a native contract.
|
// ecrecover implemented as a native contract.
|
||||||
type ecrecover struct{}
|
type ecrecover struct{}
|
||||||
|
|
||||||
func (c *ecrecover) RequiredGas(input []byte) uint64 {
|
func (c *ecrecover) RequiredGas(input []byte) uint64 {
|
||||||
|
|
@ -466,7 +466,7 @@ func runBn256Add(input []byte) ([]byte, error) {
|
||||||
return res.Marshal(), nil
|
return res.Marshal(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// bn256Add implements a native elliptic curve point addition conforming to
|
// bn256AddIstanbul implements a native elliptic curve point addition conforming to
|
||||||
// Istanbul consensus rules.
|
// Istanbul consensus rules.
|
||||||
type bn256AddIstanbul struct{}
|
type bn256AddIstanbul struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ func (ctx *ScopeContext) MemoryData() []byte {
|
||||||
return ctx.Memory.Data()
|
return ctx.Memory.Data()
|
||||||
}
|
}
|
||||||
|
|
||||||
// MemoryData returns the stack data. Callers must not modify the contents
|
// StackData returns the stack data. Callers must not modify the contents
|
||||||
// of the returned data.
|
// of the returned data.
|
||||||
func (ctx *ScopeContext) StackData() []uint256.Int {
|
func (ctx *ScopeContext) StackData() []uint256.Int {
|
||||||
if ctx.Stack == nil {
|
if ctx.Stack == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue