From 81287862cc4fd2eebda4a72a277190e3e3612d11 Mon Sep 17 00:00:00 2001 From: CoreyLin <514971757@qq.com> Date: Wed, 7 Aug 2019 16:45:16 +0800 Subject: [PATCH] core/vm:modify comment errors --- core/vm/contract.go | 4 ++-- core/vm/evm.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/vm/contract.go b/core/vm/contract.go index 20baa6e751..71b5022c81 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -30,7 +30,7 @@ type ContractRef interface { // AccountRef implements ContractRef. // // Account references are used during EVM initialisation and -// it's primary use is to fetch addresses. Removing this object +// its primary use is to fetch addresses. Removing this object // proves difficult because of the cached jump destinations which // are fetched from the parent contract (i.e. the caller), which // is a ContractRef. @@ -162,7 +162,7 @@ func (c *Contract) Address() common.Address { return c.self.Address() } -// Value returns the contracts value (sent to it from it's caller) +// Value returns the contract's value (sent to it from it's caller) func (c *Contract) Value() *big.Int { return c.value } diff --git a/core/vm/evm.go b/core/vm/evm.go index 98d9e31fbb..751c1fdc1f 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -35,7 +35,7 @@ type ( CanTransferFunc func(StateDB, common.Address, *big.Int) bool // TransferFunc is the signature of a transfer function TransferFunc func(StateDB, common.Address, common.Address, *big.Int) - // GetHashFunc returns the nth block hash in the blockchain + // GetHashFunc returns the n'th block hash in the blockchain // and is used by the BLOCKHASH EVM op code. GetHashFunc func(uint64) common.Hash )