Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
2a87e879
Unverified
Commit
2a87e879
authored
Aug 09, 2021
by
Mark Tyneway
Committed by
GitHub
Aug 09, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1323 from ethereum-optimism/fix/l2geth-remove-extra-reflect
l2geth: remove unnecessary reflect
parents
b2b44b27
7ee76c23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
fifty-vans-camp.md
.changeset/fifty-vans-camp.md
+5
-0
ovm_state_manager.go
l2geth/core/vm/ovm_state_manager.go
+1
-2
No files found.
.changeset/fifty-vans-camp.md
0 → 100644
View file @
2a87e879
---
'
@eth-optimism/l2geth'
:
patch
---
Remove an unnecessary use of
`reflect`
in l2geth
l2geth/core/vm/ovm_state_manager.go
View file @
2a87e879
...
...
@@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"math/big"
"reflect"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -87,7 +86,7 @@ func getAccountNonce(evm *EVM, contract *Contract, args map[string]interface{})
return
nil
,
errors
.
New
(
"Could not parse address arg in getAccountNonce"
)
}
nonce
:=
evm
.
StateDB
.
GetNonce
(
address
)
return
[]
interface
{}{
new
(
big
.
Int
)
.
SetUint64
(
reflect
.
ValueOf
(
nonce
)
.
Uint
()
)},
nil
return
[]
interface
{}{
new
(
big
.
Int
)
.
SetUint64
(
nonce
)},
nil
}
func
getAccountEthAddress
(
evm
*
EVM
,
contract
*
Contract
,
args
map
[
string
]
interface
{})
([]
interface
{},
error
)
{
...
...
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