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
3e3c07a3
Commit
3e3c07a3
authored
Jan 11, 2022
by
Indeavr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): default address for `call` is now `address(0)`.
parent
a2695a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
kind-poems-happen.md
.changeset/kind-poems-happen.md
+5
-0
api.go
l2geth/internal/ethapi/api.go
+5
-3
No files found.
.changeset/kind-poems-happen.md
0 → 100644
View file @
3e3c07a3
---
'
@eth-optimism/l2geth'
:
patch
---
changed the default address to be address(0) in
`call`
l2geth/internal/ethapi/api.go
View file @
3e3c07a3
...
...
@@ -799,9 +799,11 @@ func DoCall(ctx context.Context, b Backend, args CallArgs, blockNrOrHash rpc.Blo
// Set sender address or use a default if none specified
var
addr
common
.
Address
if
args
.
From
==
nil
{
if
wallets
:=
b
.
AccountManager
()
.
Wallets
();
len
(
wallets
)
>
0
{
if
accounts
:=
wallets
[
0
]
.
Accounts
();
len
(
accounts
)
>
0
{
addr
=
accounts
[
0
]
.
Address
if
!
rcfg
.
UsingOVM
{
if
wallets
:=
b
.
AccountManager
()
.
Wallets
();
len
(
wallets
)
>
0
{
if
accounts
:=
wallets
[
0
]
.
Accounts
();
len
(
accounts
)
>
0
{
addr
=
accounts
[
0
]
.
Address
}
}
}
}
else
{
...
...
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