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
3730e2e0
Commit
3730e2e0
authored
Jan 24, 2023
by
Andreas Bigger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: hex big util
parent
05d376ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eth_client.go
op-node/sources/eth_client.go
+2
-2
No files found.
op-node/sources/eth_client.go
View file @
3730e2e0
...
@@ -219,12 +219,12 @@ func (s *EthClient) payloadCall(ctx context.Context, method string, id any) (*et
...
@@ -219,12 +219,12 @@ func (s *EthClient) payloadCall(ctx context.Context, method string, id any) (*et
// ChainID fetches the chain id of the internal RPC.
// ChainID fetches the chain id of the internal RPC.
func
(
s
*
EthClient
)
ChainID
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
{
func
(
s
*
EthClient
)
ChainID
(
ctx
context
.
Context
)
(
*
big
.
Int
,
error
)
{
var
id
*
big
.
Int
var
id
hexutil
.
Big
err
:=
s
.
client
.
CallContext
(
ctx
,
&
id
,
"eth_chainId"
)
err
:=
s
.
client
.
CallContext
(
ctx
,
&
id
,
"eth_chainId"
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
return
id
,
nil
return
(
*
big
.
Int
)(
&
id
)
,
nil
}
}
func
(
s
*
EthClient
)
InfoByHash
(
ctx
context
.
Context
,
hash
common
.
Hash
)
(
eth
.
BlockInfo
,
error
)
{
func
(
s
*
EthClient
)
InfoByHash
(
ctx
context
.
Context
,
hash
common
.
Hash
)
(
eth
.
BlockInfo
,
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