File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 ],
55 "npmClient" : " yarn" ,
66 "useWorkspaces" : true ,
7- "version" : " 0.0.38 " ,
7+ "version" : " 0.0.39 " ,
88 "stream" : " true" ,
99 "command" : {
1010 "version" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " root" ,
33 "private" : true ,
4- "version" : " 0.0.38 " ,
4+ "version" : " 0.0.39 " ,
55 "engines" : {
66 "node" : " >=18.0.0"
77 },
Original file line number Diff line number Diff line change 11{
22 "name" : " api" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " The API module of Etherspot bundler client" ,
55 "author" : " Etherspot" ,
66 "homepage" : " https://https://github.com/etherspot/skandha#readme" ,
3535 "class-transformer" : " 0.5.1" ,
3636 "class-validator" : " 0.14.0" ,
3737 "ethers" : " 5.7.2" ,
38- "executor" : " ^0.0.38 " ,
38+ "executor" : " ^0.0.39 " ,
3939 "fastify" : " 4.14.1" ,
4040 "pino" : " 8.11.0" ,
4141 "pino-pretty" : " 10.0.0" ,
4242 "reflect-metadata" : " 0.1.13" ,
43- "types" : " ^0.0.38 "
43+ "types" : " ^0.0.39 "
4444 },
4545 "devDependencies" : {
4646 "@types/connect" : " 3.4.35"
Original file line number Diff line number Diff line change @@ -138,11 +138,10 @@ export class ApiApp {
138138
139139 if ( this . redirectRpc && method in RedirectedRPCMethods ) {
140140 const body = await redirectApi . redirect ( method , params ) ;
141- return res . status ( 200 ) . send ( {
142- jsonrpc,
143- id,
144- ...body ,
145- } ) ;
141+ if ( body . error ) {
142+ return res . status ( 200 ) . send ( { ...body , id } ) ;
143+ }
144+ return res . status ( 200 ) . send ( { jsonrpc, id, ...body } ) ;
146145 }
147146
148147 if ( result === undefined ) {
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ export class RedirectAPI {
2222
2323 /** NETHERMIND ERROR PARSING */
2424 if (
25- body . error . data . startsWith ( "Reverted " ) &&
26- body . error . code == - 32015
25+ body . error . data &&
26+ body . error . code == - 32015 &&
27+ body . error . data . startsWith ( "Reverted " )
2728 ) {
2829 body . error . code = 3 ;
2930 body . error . message = "execution reverted" ;
Original file line number Diff line number Diff line change 11{
22 "name" : " cli" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " > TODO: description" ,
55 "author" : " zincoshine <psramanuj@gmail.com>" ,
66 "homepage" : " https://https://github.com/etherspot/skandha#readme" ,
3131 "url" : " https://https://github.com/etherspot/skandha/issues"
3232 },
3333 "dependencies" : {
34- "api" : " ^0.0.38 " ,
35- "db" : " ^0.0.38 " ,
36- "executor" : " ^0.0.38 " ,
34+ "api" : " ^0.0.39 " ,
35+ "db" : " ^0.0.39 " ,
36+ "executor" : " ^0.0.39 " ,
3737 "find-up" : " 5.0.0" ,
3838 "got" : " 12.5.3" ,
3939 "js-yaml" : " 4.1.0" ,
40- "types" : " ^0.0.38 " ,
40+ "types" : " ^0.0.39 " ,
4141 "yargs" : " 17.6.2"
4242 },
4343 "devDependencies" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " db" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " The DB module of Etherspot bundler client" ,
55 "author" : " Etherspot" ,
66 "homepage" : " https://github.com/etherspot/etherspot-bundler#readme" ,
3737 "devDependencies" : {
3838 "@types/rocksdb" : " 3.0.1" ,
3939 "prettier" : " ^2.8.4" ,
40- "types" : " ^0.0.38 "
40+ "types" : " ^0.0.39 "
4141 }
4242}
Original file line number Diff line number Diff line change 11{
22 "name" : " executor" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " The Relayer module of Etherspot bundler client" ,
55 "author" : " Etherspot" ,
66 "homepage" : " https://https://github.com/etherspot/skandha#readme" ,
3333 "dependencies" : {
3434 "async-mutex" : " 0.4.0" ,
3535 "ethers" : " 5.7.2" ,
36- "params" : " ^0.0.38 " ,
37- "types" : " ^0.0.38 "
36+ "params" : " ^0.0.39 " ,
37+ "types" : " ^0.0.39 "
3838 }
3939}
Original file line number Diff line number Diff line change 11{
22 "name" : " params" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " Various bundler parameters" ,
55 "author" : " Etherspot" ,
66 "homepage" : " https://github.com/etherspot/skandha#readme" ,
2525 "@eth-optimism/sdk" : " 3.0.0" ,
2626 "@mantleio/sdk" : " 0.2.1" ,
2727 "ethers" : " 5.7.2" ,
28- "types" : " ^0.0.38 "
28+ "types" : " ^0.0.39 "
2929 },
3030 "scripts" : {
3131 "clean" : " rm -rf lib && rm -f *.tsbuildinfo" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " types" ,
3- "version" : " 0.0.38 " ,
3+ "version" : " 0.0.39 " ,
44 "description" : " The types of Etherspot bundler client" ,
55 "author" : " Etherspot" ,
66 "homepage" : " https://https://github.com/etherspot/skandha#readme" ,
You can’t perform that action at this time.
0 commit comments