good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
c053f114
Unverified
Commit
c053f114
authored
6 years ago
by
Péter Szilágyi
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #16388 from hydai/fix_comments
core/vm: Fixed typos
parents
db9b2f54
c3dc814f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/vm/evm.go
+3
-3
3 additions, 3 deletions
core/vm/evm.go
with
3 additions
and
3 deletions
core/vm/evm.go
+
3
−
3
View file @
c053f114
...
...
@@ -111,7 +111,7 @@ type EVM struct {
callGasTemp
uint64
}
// NewEVM retu
t
rns a new EVM
. The returned EVM is not thread safe and should
// NewEVM returns 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 ev
m
ironment for this execution context
// E
VM.
The contract is a scoped e
n
vironment 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 ev
m
ironment for this execution context
// E
VM.
The contract is a scoped e
n
vironment for this execution context
// only.
contract
:=
NewContract
(
caller
,
AccountRef
(
contractAddr
),
value
,
gas
)
contract
.
SetCallCode
(
&
contractAddr
,
crypto
.
Keccak256Hash
(
code
),
code
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment