aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorneedkane <604476380@qq.com>2019-02-18 19:14:49 +0800
committerMartin Holst Swende <martin@swende.se>2019-02-18 19:14:49 +0800
commita1f366ecf6a316d55422906172844df3ab5f7047 (patch)
treeeedb9e64ca434603fbe8413e652583b270f71034 /core/vm
parentdf7c4618cd20530e71b8c8c6340749e5eb7e02ed (diff)
downloadgo-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar.gz
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar.bz2
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar.lz
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar.xz
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.tar.zst
go-tangerine-a1f366ecf6a316d55422906172844df3ab5f7047.zip
core/vm: update annotation (#19050)
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/evm.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go
index ba4d1e9eb..70e1cd1b8 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -267,9 +267,8 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
snapshot = evm.StateDB.Snapshot()
to = AccountRef(caller.Address())
)
- // initialise a new contract and set the code that is to be used by the
- // EVM. The contract is a scoped environment for this execution context
- // only.
+ // Initialise a new contract and set the code that is to be used by the EVM.
+ // The contract is a scoped environment for this execution context only.
contract := NewContract(caller, to, value, gas)
contract.SetCallCode(&addr, evm.StateDB.GetCodeHash(addr), evm.StateDB.GetCode(addr))
@@ -333,9 +332,8 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte
to = AccountRef(addr)
snapshot = evm.StateDB.Snapshot()
)
- // Initialise a new contract and set the code that is to be used by the
- // EVM. The contract is a scoped environment for this execution context
- // only.
+ // Initialise a new contract and set the code that is to be used by the EVM.
+ // The contract is a scoped environment for this execution context only.
contract := NewContract(caller, to, new(big.Int), gas)
contract.SetCallCode(&addr, evm.StateDB.GetCodeHash(addr), evm.StateDB.GetCode(addr))
@@ -396,9 +394,8 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
}
evm.Transfer(evm.StateDB, caller.Address(), address, value)
- // initialise a new contract and set the code that is to be used by the
- // EVM. The contract is a scoped environment for this execution context
- // only.
+ // Initialise a new contract and set the code that is to be used by the EVM.
+ // The contract is a scoped environment for this execution context only.
contract := NewContract(caller, AccountRef(address), value, gas)
contract.SetCodeOptionalHash(&address, codeAndHash)