Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c3dc814f
Unverified
Commit
c3dc814f
authored
Mar 26, 2018
by
hydai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm: Fixed typo in core/vm/evm.go
parent
db9b2f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
evm.go
core/vm/evm.go
+3
-3
No files found.
core/vm/evm.go
View file @
c3dc814f
...
...
@@ -111,7 +111,7 @@ type EVM struct {
callGasTemp
uint64
}
// NewEVM retu
trns a new EVM
. The returned EVM is not thread safe and should
// NewEVM retu
rns a new EVM
. The returned EVM is not thread safe and should
// only ever be used *once*.
func
NewEVM
(
ctx
Context
,
statedb
StateDB
,
chainConfig
*
params
.
ChainConfig
,
vmConfig
Config
)
*
EVM
{
evm
:=
&
EVM
{
...
...
@@ -221,7 +221,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
to
=
AccountRef
(
caller
.
Address
())
)
// initialise a new contract and set the code that is to be used by the
// E
The contract is a scoped evm
ironment for this execution context
// E
VM. The contract is a scoped env
ironment for this execution context
// only.
contract
:=
NewContract
(
caller
,
to
,
value
,
gas
)
contract
.
SetCallCode
(
&
addr
,
evm
.
StateDB
.
GetCodeHash
(
addr
),
evm
.
StateDB
.
GetCode
(
addr
))
...
...
@@ -341,7 +341,7 @@ func (evm *EVM) Create(caller ContractRef, code []byte, gas uint64, value *big.I
evm
.
Transfer
(
evm
.
StateDB
,
caller
.
Address
(),
contractAddr
,
value
)
// initialise a new contract and set the code that is to be used by the
// E
The contract is a scoped evm
ironment for this execution context
// E
VM. The contract is a scoped env
ironment for this execution context
// only.
contract
:=
NewContract
(
caller
,
AccountRef
(
contractAddr
),
value
,
gas
)
contract
.
SetCallCode
(
&
contractAddr
,
crypto
.
Keccak256Hash
(
code
),
code
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment