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
beb51f74
Commit
beb51f74
authored
May 31, 2023
by
Felipe Andrade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for debug_getRawReceipts with block hash
parent
4c1b7a1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
rewriter_test.go
proxyd/rewriter_test.go
+16
-0
No files found.
proxyd/rewriter_test.go
View file @
beb51f74
...
@@ -200,6 +200,22 @@ func TestRewriteRequest(t *testing.T) {
...
@@ -200,6 +200,22 @@ func TestRewriteRequest(t *testing.T) {
},
},
expected
:
RewriteNone
,
expected
:
RewriteNone
,
},
},
{
name
:
"debug_getRawReceipts with block hash"
,
args
:
args
{
rctx
:
RewriteContext
{
latest
:
hexutil
.
Uint64
(
100
)},
req
:
&
RPCReq
{
Method
:
"debug_getRawReceipts"
,
Params
:
mustMarshalJSON
([]
string
{
"0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"
})},
res
:
nil
,
},
expected
:
RewriteNone
,
check
:
func
(
t
*
testing
.
T
,
args
args
)
{
var
p
[]
string
err
:=
json
.
Unmarshal
(
args
.
req
.
Params
,
&
p
)
require
.
Nil
(
t
,
err
)
require
.
Equal
(
t
,
1
,
len
(
p
))
require
.
Equal
(
t
,
"0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b"
,
p
[
0
])
},
},
/* default block parameter */
/* default block parameter */
{
{
name
:
"eth_getCode omit block, should add"
,
name
:
"eth_getCode omit block, should add"
,
...
...
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