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
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
7c657fc7
Commit
7c657fc7
authored
Nov 29, 2018
by
Martin Holst Swende
Committed by
Péter Szilágyi
Nov 29, 2018
Browse files
Options
Downloads
Patches
Plain Diff
tests, core: update tests and make STATICCALL cause touch-delete (#18187)
parent
3d21d455
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/vm/evm.go
+6
-0
6 additions, 0 deletions
core/vm/evm.go
tests/init.go
+9
-0
9 additions, 0 deletions
tests/init.go
tests/testdata
+1
-1
1 addition, 1 deletion
tests/testdata
with
16 additions
and
1 deletion
core/vm/evm.go
+
6
−
0
View file @
7c657fc7
...
@@ -339,6 +339,12 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte
...
@@ -339,6 +339,12 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte
contract
:=
NewContract
(
caller
,
to
,
new
(
big
.
Int
),
gas
)
contract
:=
NewContract
(
caller
,
to
,
new
(
big
.
Int
),
gas
)
contract
.
SetCallCode
(
&
addr
,
evm
.
StateDB
.
GetCodeHash
(
addr
),
evm
.
StateDB
.
GetCode
(
addr
))
contract
.
SetCallCode
(
&
addr
,
evm
.
StateDB
.
GetCodeHash
(
addr
),
evm
.
StateDB
.
GetCode
(
addr
))
// We do an AddBalance of zero here, just in order to trigger a touch.
// This doesn't matter on Mainnet, where all empties are gone at the time of Byzantium,
// but is the correct thing to do and matters on other networks, in tests, and potential
// future scenarios
evm
.
StateDB
.
AddBalance
(
addr
,
bigZero
)
// When an error was returned by the EVM or when setting the creation code
// When an error was returned by the EVM or when setting the creation code
// above we revert to the snapshot and consume any gas remaining. Additionally
// above we revert to the snapshot and consume any gas remaining. Additionally
// when we're in Homestead this also counts for code storage gas errors.
// when we're in Homestead this also counts for code storage gas errors.
...
...
This diff is collapsed.
Click to expand it.
tests/init.go
+
9
−
0
View file @
7c657fc7
...
@@ -86,6 +86,15 @@ var Forks = map[string]*params.ChainConfig{
...
@@ -86,6 +86,15 @@ var Forks = map[string]*params.ChainConfig{
EIP158Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
5
),
ByzantiumBlock
:
big
.
NewInt
(
5
),
},
},
"ByzantiumToConstantinopleAt5"
:
{
ChainID
:
big
.
NewInt
(
1
),
HomesteadBlock
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ConstantinopleBlock
:
big
.
NewInt
(
5
),
},
}
}
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.
...
...
This diff is collapsed.
Click to expand it.
testdata
@
c02a2a17
Compare
95a30920
...
c02a2a17
Subproject commit
95a309203890e6244c6d4353ca411671973c13b5
Subproject commit
c02a2a17c0288a255572b37dc7ec1fcb838b9dbf
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